mirror of https://github.com/statping/statping
travis-ci updates
parent
7765075c27
commit
cbabd2f8fa
|
@ -181,7 +181,7 @@ func TestHttpRequest(t *testing.T) {
|
||||||
// Close the server when test finishes
|
// Close the server when test finishes
|
||||||
defer server.Close()
|
defer server.Close()
|
||||||
|
|
||||||
body, resp, err := HttpRequest(server.URL, "GET", "application/json", []string{"aaa=bbbb=", "ccc=ddd"}, nil, 2*time.Second)
|
body, resp, err := HttpRequest(server.URL, "GET", "application/json", []string{"aaa=bbbb=", "ccc=ddd"}, nil, 2*time.Second, false)
|
||||||
|
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Equal(t, []byte("OK"), body)
|
assert.Equal(t, []byte("OK"), body)
|
||||||
|
|
Loading…
Reference in New Issue