From 38e31015ad808d4bbecc5a44887f0f39c11186ba Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 5 May 2017 13:53:20 +0530 Subject: [PATCH] Log stderr for unexpected integration test error Logging unexpected errors would help in better failure visibility. --- test/integration_testcase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration_testcase.go b/test/integration_testcase.go index fb4fa29854..21d9c3e958 100644 --- a/test/integration_testcase.go +++ b/test/integration_testcase.go @@ -138,7 +138,7 @@ func (tc *IntegrationTestCase) CompareError(err error, stderr string) { tc.t.Errorf("expected error containing %s, got error %s", want, got) } } else if !wantExists && gotExists { - tc.t.Fatal("error raised where none was expected") + tc.t.Fatalf("error raised where none was expected: \n%v", stderr) } else if wantExists && !gotExists { tc.t.Error("error not raised where one was expected") }