Skip to content

Commit

Permalink
Use a test data file in TestPostBody.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel committed Jan 15, 2019
1 parent c97981f commit b72856c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion prober/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func TestPostBody(t *testing.T) {
HTTP: config.HTTPProbe{
IPProtocolFallback: true,
Method: "POST",
BodyFile: "./http.go",
BodyFile: "./testdata/http_body.txt",
},
}, registry, log.NewNopLogger())
body := recorder.Body.String()
Expand Down
1 change: 1 addition & 0 deletions prober/testdata/http_body.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TEST HTTP BODY

0 comments on commit b72856c

Please sign in to comment.