Browse code

Fix vet errors about formatting directives

Signed-off-by: Alexander Morozov <lk4d4@docker.com>

Alexander Morozov authored on 2014/12/13 03:58:56
Showing 6 changed files
... ...
@@ -16,7 +16,7 @@ func TestMergeLxcConfig(t *testing.T) {
16 16
 
17 17
 	out, err := mergeLxcConfIntoOptions(hostConfig)
18 18
 	if err != nil {
19
-		t.Fatalf("Failed to merge Lxc Config ", err)
19
+		t.Fatalf("Failed to merge Lxc Config: %s", err)
20 20
 	}
21 21
 
22 22
 	cpuset := out[0]
... ...
@@ -122,7 +122,7 @@ func TestAttachTtyWithoutStdin(t *testing.T) {
122 122
 		if out, _, err := runCommandWithOutput(cmd); err == nil {
123 123
 			t.Fatal("attach should have failed")
124 124
 		} else if !strings.Contains(out, expected) {
125
-			t.Fatal("attach failed with error %q: expected %q", out, expected)
125
+			t.Fatalf("attach failed with error %q: expected %q", out, expected)
126 126
 		}
127 127
 	}()
128 128
 
... ...
@@ -3799,7 +3799,7 @@ func TestBuildStderr(t *testing.T) {
3799 3799
 		t.Fatal(err)
3800 3800
 	}
3801 3801
 	if stderr != "" {
3802
-		t.Fatal("Stderr should have been empty, instead its: %q", stderr)
3802
+		t.Fatalf("Stderr should have been empty, instead its: %q", stderr)
3803 3803
 	}
3804 3804
 	logDone("build - testing stderr")
3805 3805
 }
... ...
@@ -339,7 +339,7 @@ func TestExecTtyWithoutStdin(t *testing.T) {
339 339
 		if out, _, err := runCommandWithOutput(cmd); err == nil {
340 340
 			t.Fatal("exec should have failed")
341 341
 		} else if !strings.Contains(out, expected) {
342
-			t.Fatal("exec failed with error %q: expected %q", out, expected)
342
+			t.Fatalf("exec failed with error %q: expected %q", out, expected)
343 343
 		}
344 344
 	}()
345 345
 
... ...
@@ -2759,7 +2759,7 @@ func TestRunTtyWithPipe(t *testing.T) {
2759 2759
 		if out, _, err := runCommandWithOutput(cmd); err == nil {
2760 2760
 			t.Fatal("run should have failed")
2761 2761
 		} else if !strings.Contains(out, expected) {
2762
-			t.Fatal("run failed with error %q: expected %q", out, expected)
2762
+			t.Fatalf("run failed with error %q: expected %q", out, expected)
2763 2763
 		}
2764 2764
 	}()
2765 2765
 
... ...
@@ -311,7 +311,7 @@ func TestFollowSymlinkEmpty(t *testing.T) {
311 311
 		t.Fatal(err)
312 312
 	}
313 313
 	if res != wd {
314
-		t.Fatal("expected %q got %q", wd, res)
314
+		t.Fatalf("expected %q got %q", wd, res)
315 315
 	}
316 316
 }
317 317