mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-04 07:48:44 +00:00
@@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
@@ -3903,7 +3903,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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
@@ -2760,7 +2760,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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user