Skip to content

Commit

Permalink
print debug logs for TestNetListen
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Oct 25, 2018
1 parent 87af7b1 commit 7d9a67d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/e2e/net_listen_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package e2e

import (
"fmt"
"net/http"
"testing"
"time"
Expand All @@ -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"

Expand Down

0 comments on commit 7d9a67d

Please sign in to comment.