diff --git a/confirm/confirm_test.go b/confirm/confirm_test.go index 886665a..b5ae1fc 100644 --- a/confirm/confirm_test.go +++ b/confirm/confirm_test.go @@ -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) } diff --git a/internal/render/render_test.go b/internal/render/render_test.go index 2e5e925..da0a68a 100644 --- a/internal/render/render_test.go +++ b/internal/render/render_test.go @@ -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.") } diff --git a/register/register_test.go b/register/register_test.go index ffa22a8..7c7f47e 100644 --- a/register/register_test.go +++ b/register/register_test.go @@ -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) }