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:
parent
0928720a3f
commit
8b1007f7dd
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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.")
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user