浏览代码

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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 年之前
父节点
当前提交
fa79b5d59f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      integration/container/pause_test.go

+ 2 - 1
integration/container/pause_test.go

@@ -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)
 		}
 	}
 }