Преглед изворни кода

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