Improve integration test helper functions (#2049)

Set request headers in helper functions, and new helper for requests with string-formatted URLs
This commit is contained in:
Ethan Koenig authored and Lunny Xiao committed 2017-06-25 08:15:42 +08:00
1 parent 3ffedeab03
commit f64c232953
13 files changed
+9 -24

No files matched your search

-1
View File
@@ -30,7 +30,6 @@ func testRepoMigrate(t testing.TB, session *TestSession, cloneAddr, repoName str
"repo_name": repoName,
},
)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
resp = session.MakeRequest(t, req)
assert.EqualValues(t, http.StatusFound, resp.HeaderCode)