diff options
Diffstat (limited to 'web/web_test.go')
| -rw-r--r-- | web/web_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/web_test.go b/web/web_test.go index a208155..a40e073 100644 --- a/web/web_test.go +++ b/web/web_test.go @@ -130,8 +130,8 @@ func TestLoginHandlerPostSuccess(t *testing.T) { req.Form = map[string][]string{"password": {"testpass"}} rr := httptest.NewRecorder() loginHandler(rr, req) - if rr.Code != http.StatusTemporaryRedirect { - t.Errorf("Expected %d, got %d", http.StatusTemporaryRedirect, rr.Code) + if rr.Code != http.StatusSeeOther { + t.Errorf("Expected %d, got %d", http.StatusSeeOther, rr.Code) } } |
