Signed-off-by: Alexander Morozov <lk4d4@docker.com>
| ... | ... |
@@ -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 |
|