diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-21 22:32:49 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-21 22:32:49 -0400 |
commit | 54a4f6f720979dc8c8d6224acd24f04d147ef761 (patch) | |
tree | 5c7d8c19d8ca0f145cee9234578e881366989b35 /http_test.go | |
parent | 360f7e248a065a766890db9b4f65757dc6365eb2 (diff) | |
download | getwtxt-54a4f6f720979dc8c8d6224acd24f04d147ef761.tar.gz |
fixed http 400 response and test
Diffstat (limited to 'http_test.go')
-rw-r--r-- | http_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http_test.go b/http_test.go index 57635e5..67ccc88 100644 --- a/http_test.go +++ b/http_test.go @@ -12,7 +12,7 @@ func Test_log400(t *testing.T) { t.Run("log400", func(t *testing.T) { w := httptest.NewRecorder() req := httptest.NewRequest("POST", "/400", nil) - log400(req, errors.New("400 Test")) + log400(w, req, errors.New("400 Test")) resp := w.Result() if resp.StatusCode != http.StatusBadRequest { t.Errorf("Didn't receive 400, received: %v\n", resp.StatusCode) |