diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-06-17 00:49:45 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-17 12:49:45 +0800 |
commit | ce9b86082c4824917023b1bb480648d0cc56dd04 (patch) | |
tree | ba28673c955d009492557f54953857165e2f8da8 /integrations/repo_test.go | |
parent | a3868ef5367315f52334b81819a412cad820f5eb (diff) | |
download | gitea-ce9b86082c4824917023b1bb480648d0cc56dd04.tar.gz gitea-ce9b86082c4824917023b1bb480648d0cc56dd04.zip |
Consolidate boilerplate in integration tests (#1979)
Diffstat (limited to 'integrations/repo_test.go')
-rw-r--r-- | integrations/repo_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/integrations/repo_test.go b/integrations/repo_test.go index a602d96f79..23df6d733c 100644 --- a/integrations/repo_test.go +++ b/integrations/repo_test.go @@ -22,7 +22,7 @@ func TestViewRepo(t *testing.T) { resp = MakeRequest(req) assert.EqualValues(t, http.StatusNotFound, resp.HeaderCode) - session := loginUser(t, "user1", "password") + session := loginUser(t, "user1") resp = session.MakeRequest(t, req) assert.EqualValues(t, http.StatusNotFound, resp.HeaderCode) } @@ -31,7 +31,7 @@ func TestViewRepo2(t *testing.T) { prepareTestEnv(t) req := NewRequest(t, "GET", "/user3/repo3") - session := loginUser(t, "user2", "password") + session := loginUser(t, "user2") resp := session.MakeRequest(t, req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) } @@ -40,7 +40,7 @@ func TestViewRepo3(t *testing.T) { prepareTestEnv(t) req := NewRequest(t, "GET", "/user3/repo3") - session := loginUser(t, "user3", "password") + session := loginUser(t, "user3") resp := session.MakeRequest(t, req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) } |