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

It is better to add "\n" in printf

Signed-off-by: YuPengZTE <yu.peng36@zte.com.cn>
YuPengZTE пре 8 година
родитељ
комит
9b015bd4fd
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      integration-cli/docker_cli_images_test.go
  2. 1 1
      integration-cli/docker_test_vars.go

+ 1 - 1
integration-cli/docker_cli_images_test.go

@@ -218,7 +218,7 @@ func (s *DockerSuite) TestImagesFilterSpaceTrimCase(c *check.C) {
 	for idx, listing := range imageListings {
 		if idx < 4 && !reflect.DeepEqual(listing, imageListings[idx+1]) {
 			for idx, errListing := range imageListings {
-				fmt.Printf("out %d", idx)
+				fmt.Printf("out %d\n", idx)
 				for _, image := range errListing {
 					fmt.Print(image)
 				}

+ 1 - 1
integration-cli/docker_test_vars.go

@@ -87,7 +87,7 @@ func init() {
 	var err error
 	dockerBinary, err = exec.LookPath(dockerBinary)
 	if err != nil {
-		fmt.Printf("ERROR: couldn't resolve full path to the Docker binary (%v)", err)
+		fmt.Printf("ERROR: couldn't resolve full path to the Docker binary (%v)\n", err)
 		os.Exit(1)
 	}
 	if registryImage := os.Getenv("REGISTRY_IMAGE"); registryImage != "" {