Browse code

push test: fix typo

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>

Ma Shimiao authored on 2015/04/23 17:50:41
Showing 1 changed files
... ...
@@ -72,7 +72,7 @@ func (s *DockerSuite) TestPushMultipleTags(c *check.C) {
72 72
 	repoName := fmt.Sprintf("%v/dockercli/busybox", privateRegistryURL)
73 73
 	repoTag1 := fmt.Sprintf("%v/dockercli/busybox:t1", privateRegistryURL)
74 74
 	repoTag2 := fmt.Sprintf("%v/dockercli/busybox:t2", privateRegistryURL)
75
-	// tag the image to upload it tot he private registry
75
+	// tag the image and upload it to the private registry
76 76
 	tagCmd1 := exec.Command(dockerBinary, "tag", "busybox", repoTag1)
77 77
 	if out, _, err := runCommandWithOutput(tagCmd1); err != nil {
78 78
 		c.Fatalf("image tagging failed: %s, %v", out, err)
... ...
@@ -93,7 +93,7 @@ func (s *DockerSuite) TestPushMultipleTags(c *check.C) {
93 93
 func (s *DockerSuite) TestPushInterrupt(c *check.C) {
94 94
 	defer setupRegistry(c)()
95 95
 	repoName := fmt.Sprintf("%v/dockercli/busybox", privateRegistryURL)
96
-	// tag the image to upload it tot he private registry
96
+	// tag the image and upload it to the private registry
97 97
 	if out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "tag", "busybox", repoName)); err != nil {
98 98
 		c.Fatalf("image tagging failed: %s, %v", out, err)
99 99
 	}
... ...
@@ -116,8 +116,8 @@ func (s *DockerSuite) TestPushInterrupt(c *check.C) {
116 116
 		}
117 117
 	}
118 118
 	// now wait until all this pushes will complete
119
-	// if it will fail with timeout - this is some error, so no logic about it
120
-	// here
119
+	// if it failed with timeout - there would be some error,
120
+	// so no logic about it here
121 121
 	for exec.Command(dockerBinary, "push", repoName).Run() != nil {
122 122
 	}
123 123
 }