Skip to content

Commit

Permalink
debug output added
Browse files Browse the repository at this point in the history
  • Loading branch information
dencoded committed Nov 28, 2017
1 parent 53e8a0d commit b0c0ac7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,18 @@ func testHttp(t *testing.T, tests []tykHttpTest, separateControlPort bool) {
}
resp.Body.Close()

t.Logf(
"testHttp [%d]%s%s %s Status %d, want %d, apiSpecsLen=%d apisByIDLen=%d",
ti,
tPrefix,
tc.method,
tc.path,
resp.StatusCode,
tc.code,
apiSpecsLen(),
apisByIDLen(),
)

if resp.StatusCode != tc.code {
t.Errorf("[%d]%s%s %s Status %d, want %d", ti, tPrefix, tc.method, tc.path, resp.StatusCode, tc.code)
}
Expand Down

0 comments on commit b0c0ac7

Please sign in to comment.