From 7d9a67d3cdbb7f8008eef463420e936575f58119 Mon Sep 17 00:00:00 2001 From: dmitriy kalinin Date: Thu, 25 Oct 2018 11:54:01 -0700 Subject: [PATCH] print debug logs for TestNetListen --- test/e2e/net_listen_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/e2e/net_listen_test.go b/test/e2e/net_listen_test.go index 2c28c70..e591e86 100644 --- a/test/e2e/net_listen_test.go +++ b/test/e2e/net_listen_test.go @@ -1,6 +1,7 @@ package e2e import ( + "fmt" "net/http" "testing" "time" @@ -18,12 +19,20 @@ func TestNetListen(t *testing.T) { kwtNetStart.Start([]string{}) defer kwtNetStart.End() + defer func() { + fmt.Printf("start cmd output: \n%s\n", kwtNetStart.CollectedOutput()) + }() + localAddr := "localhost:8080" svcName := "kwt-listen-web" kwtNetListen.Listen([]string{"--local", localAddr, "--service", svcName}) defer kwtNetListen.End() + defer func() { + fmt.Printf("listen cmd output: \n%s\n", kwtNetListen.CollectedOutput()) + }() + webAddr := "" expectedOutput := "test-reply"