mirror of https://github.com/docker/docs.git
Add more error info to TestDockerRunEchoStdoutWithMemoryLimit
This test fails on my CI server often so we need more info when it does happen with this test. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
0704010313
commit
c0a5ec75c5
|
@ -41,8 +41,10 @@ func TestDockerRunEchoStdoutWithMemoryLimit(t *testing.T) {
|
||||||
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
||||||
errorOut(err, t, out)
|
errorOut(err, t, out)
|
||||||
|
|
||||||
if out != "test\n" {
|
out = strings.Trim(out, "\r\n")
|
||||||
t.Errorf("container should've printed 'test'")
|
|
||||||
|
if expected := "test"; out != expected {
|
||||||
|
t.Errorf("container should've printed %q but printed %q", expected, out)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue