Merge pull request #7833 from crosbymichael/mem-test

Add more error info to TestDockerRunEchoStdoutWithMemoryLimit
This commit is contained in:
Alexandr Morozov 2014-09-02 07:51:04 +04:00
commit 5f6b420f91
1 changed files with 4 additions and 2 deletions

View File

@ -41,8 +41,10 @@ func TestDockerRunEchoStdoutWithMemoryLimit(t *testing.T) {
out, _, _, err := runCommandWithStdoutStderr(runCmd)
errorOut(err, t, out)
if out != "test\n" {
t.Errorf("container should've printed 'test'")
out = strings.Trim(out, "\r\n")
if expected := "test"; out != expected {
t.Errorf("container should've printed %q but printed %q", expected, out)
}