瀏覽代碼

Merge pull request #38490 from kolyshkin/test-rename-anon-ct

TestRenameAnonymousContainer: fix error msg
Sebastiaan van Stijn 6 年之前
父節點
當前提交
2ee53a42db
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      integration/container/rename_test.go

+ 1 - 1
integration/container/rename_test.go

@@ -165,7 +165,7 @@ func TestRenameAnonymousContainer(t *testing.T) {
 
 
 	inspect, err := client.ContainerInspect(ctx, cID)
 	inspect, err := client.ContainerInspect(ctx, cID)
 	assert.NilError(t, err)
 	assert.NilError(t, err)
-	assert.Check(t, is.Equal(0, inspect.State.ExitCode), "container %s exited with the wrong exitcode: %+v", cID, inspect)
+	assert.Check(t, is.Equal(0, inspect.State.ExitCode), "container %s exited with the wrong exitcode: %s", cID, inspect.State.Error)
 }
 }
 
 
 // TODO: should be a unit test
 // TODO: should be a unit test