Fix vet errors about formatting directives

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2014-12-12 10:58:56 -08:00
parent 2540765ddc
commit a7ae7fed73
6 changed files with 6 additions and 6 deletions

View File

@ -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]

View File

@ -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)
}
}()

View File

@ -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")
}

View File

@ -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)
}
}()

View File

@ -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)
}
}()

View File

@ -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)
}
}