1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-06 03:54:17 +02:00

Fix broken redirect tests.

This commit is contained in:
Aaron 2015-02-24 23:45:55 -08:00
parent 0928720a3f
commit 8b1007f7dd
3 changed files with 3 additions and 3 deletions

View File

@ -199,7 +199,7 @@ func TestConfirm_Confirm(t *testing.T) {
ctx.SessionStorer = session
c.confirmHandler(ctx, w, r)
if w.Code != http.StatusTemporaryRedirect {
if w.Code != http.StatusFound {
t.Error("Expected a redirect after success:", w.Code)
}

View File

@ -128,7 +128,7 @@ func TestRedirect(t *testing.T) {
Redirect(ctx, w, r, "/", "success", "failure")
if w.Code != http.StatusTemporaryRedirect {
if w.Code != http.StatusFound {
t.Error("Expected a redirect.")
}

View File

@ -136,7 +136,7 @@ func TestRegisterPostSuccess(t *testing.T) {
t.Error(err)
}
if w.Code != http.StatusTemporaryRedirect {
if w.Code != http.StatusFound {
t.Error("It should have written a redirect:", w.Code)
}