Explorar o código

Fix vet errors about formatting directives

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Alexander Morozov %!s(int64=10) %!d(string=hai) anos
pai
achega
a7ae7fed73

+ 1 - 1
daemon/utils_test.go

@@ -16,7 +16,7 @@ func TestMergeLxcConfig(t *testing.T) {
 
 	out, err := mergeLxcConfIntoOptions(hostConfig)
 	if err != nil {
-		t.Fatalf("Failed to merge Lxc Config ", err)
+		t.Fatalf("Failed to merge Lxc Config: %s", err)
 	}
 
 	cpuset := out[0]

+ 1 - 1
integration-cli/docker_cli_attach_test.go

@@ -122,7 +122,7 @@ func TestAttachTtyWithoutStdin(t *testing.T) {
 		if out, _, err := runCommandWithOutput(cmd); err == nil {
 			t.Fatal("attach should have failed")
 		} else if !strings.Contains(out, expected) {
-			t.Fatal("attach failed with error %q: expected %q", out, expected)
+			t.Fatalf("attach failed with error %q: expected %q", out, expected)
 		}
 	}()
 

+ 1 - 1
integration-cli/docker_cli_build_test.go

@@ -3799,7 +3799,7 @@ func TestBuildStderr(t *testing.T) {
 		t.Fatal(err)
 	}
 	if stderr != "" {
-		t.Fatal("Stderr should have been empty, instead its: %q", stderr)
+		t.Fatalf("Stderr should have been empty, instead its: %q", stderr)
 	}
 	logDone("build - testing stderr")
 }

+ 1 - 1
integration-cli/docker_cli_exec_test.go

@@ -339,7 +339,7 @@ func TestExecTtyWithoutStdin(t *testing.T) {
 		if out, _, err := runCommandWithOutput(cmd); err == nil {
 			t.Fatal("exec should have failed")
 		} else if !strings.Contains(out, expected) {
-			t.Fatal("exec failed with error %q: expected %q", out, expected)
+			t.Fatalf("exec failed with error %q: expected %q", out, expected)
 		}
 	}()
 

+ 1 - 1
integration-cli/docker_cli_run_test.go

@@ -2759,7 +2759,7 @@ func TestRunTtyWithPipe(t *testing.T) {
 		if out, _, err := runCommandWithOutput(cmd); err == nil {
 			t.Fatal("run should have failed")
 		} else if !strings.Contains(out, expected) {
-			t.Fatal("run failed with error %q: expected %q", out, expected)
+			t.Fatalf("run failed with error %q: expected %q", out, expected)
 		}
 	}()
 

+ 1 - 1
pkg/symlink/fs_test.go

@@ -311,7 +311,7 @@ func TestFollowSymlinkEmpty(t *testing.T) {
 		t.Fatal(err)
 	}
 	if res != wd {
-		t.Fatal("expected %q got %q", wd, res)
+		t.Fatalf("expected %q got %q", wd, res)
 	}
 }