mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix vet errors about formatting directives
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
2540765ddc
commit
a7ae7fed73
6 changed files with 6 additions and 6 deletions
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue