Przeglądaj źródła

Change integration test to use variable

Followup to #20246, changes the test to use already declared variable

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
Christopher Jones 9 lat temu
rodzic
commit
ce1059973a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      integration-cli/docker_cli_network_unix_test.go

+ 1 - 1
integration-cli/docker_cli_network_unix_test.go

@@ -1014,7 +1014,7 @@ func (s *DockerNetworkSuite) TestDockerNetworkHostModeUngracefulDaemonRestart(c
 		c.Assert(err, checker.IsNil, check.Commentf(out))
 
 		// verfiy container has finished starting before killing daemon
-		err = s.d.waitRun(fmt.Sprintf("hostc-%d", i))
+		err = s.d.waitRun(cName)
 		c.Assert(err, checker.IsNil)
 	}