From bdff4b25d2a879357bc0ed53e96c0b551de07f88 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Fri, 21 Sep 2018 16:29:34 +0300 Subject: version bump + fmt --- service/http/handler_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'service/http/handler_test.go') diff --git a/service/http/handler_test.go b/service/http/handler_test.go index b82fc938..3b51c873 100644 --- a/service/http/handler_test.go +++ b/service/http/handler_test.go @@ -8,13 +8,13 @@ import ( "io/ioutil" "mime/multipart" "net/http" + "net/http/httptest" "net/url" "os" "runtime" "strings" "testing" "time" - "net/http/httptest" ) // get request and return body @@ -113,14 +113,13 @@ func Test_Handler_JSON_error(t *testing.T) { wr := httptest.NewRecorder() rq := httptest.NewRequest("POST", "/", bytes.NewBuffer([]byte("{sd"))) - rq.Header.Add("Content-Type","application/json") - rq.Header.Add("Content-Size","3") + rq.Header.Add("Content-Type", "application/json") + rq.Header.Add("Content-Size", "3") st.ServeHTTP(wr, rq) assert.Equal(t, 500, wr.Code) } - func TestServer_Headers(t *testing.T) { st := &Handler{ cfg: &Config{ -- cgit v1.2.3