summaryrefslogtreecommitdiffstats
path: root/integrations/signup_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/signup_test.go')
-rw-r--r--integrations/signup_test.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/integrations/signup_test.go b/integrations/signup_test.go
index bc32adb31d..325c906326 100644
--- a/integrations/signup_test.go
+++ b/integrations/signup_test.go
@@ -9,8 +9,6 @@ import (
"testing"
"code.gitea.io/gitea/modules/setting"
-
- "github.com/stretchr/testify/assert"
)
func TestSignup(t *testing.T) {
@@ -24,11 +22,9 @@ func TestSignup(t *testing.T) {
"password": "examplePassword",
"retype": "examplePassword",
})
- resp := MakeRequest(req)
- assert.EqualValues(t, http.StatusFound, resp.HeaderCode)
+ MakeRequest(t, req, http.StatusFound)
// should be able to view new user's page
req = NewRequest(t, "GET", "/exampleUser")
- resp = MakeRequest(req)
- assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
+ MakeRequest(t, req, http.StatusOK)
}