integration/container: TestPause: don't depend on deprecated fields

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-08-26 14:14:09 +02:00
parent 0161aad462
commit fa79b5d59f
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -88,6 +88,7 @@ func TestPauseStopPausedContainer(t *testing.T) {
}
func getEventActions(t *testing.T, messages <-chan events.Message, errs <-chan error) []string {
t.Helper()
var actions []string
for {
select {
@ -95,7 +96,7 @@ func getEventActions(t *testing.T, messages <-chan events.Message, errs <-chan e
assert.Check(t, err == nil || err == io.EOF)
return actions
case e := <-messages:
actions = append(actions, e.Status)
actions = append(actions, e.Action)
}
}
}