Przeglądaj źródła

Merge pull request #40057 from andrewhsu/truetop

integration-cli: TestDockerNetworkConnectLinkLocalIP return on failure
Tibor Vass 5 lat temu
rodzic
commit
dba8da8158
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      integration-cli/docker_cli_network_unix_test.go

+ 2 - 2
integration-cli/docker_cli_network_unix_test.go

@@ -1377,9 +1377,9 @@ func (s *DockerNetworkSuite) TestDockerNetworkConnectLinkLocalIP(c *testing.T) {
 	assertNwIsAvailable(c, "n0")
 
 	// run a container with incorrect link-local address
-	_, _, err := dockerCmdWithError("run", "--link-local-ip", "169.253.5.5", "busybox", "top")
+	_, _, err := dockerCmdWithError("run", "--link-local-ip", "169.253.5.5", "busybox", "true")
 	assert.ErrorContains(c, err, "")
-	_, _, err = dockerCmdWithError("run", "--link-local-ip", "2001:db8::89", "busybox", "top")
+	_, _, err = dockerCmdWithError("run", "--link-local-ip", "2001:db8::89", "busybox", "true")
 	assert.ErrorContains(c, err, "")
 
 	// run two containers with link-local ip on the test network