Commit 3ce8ac6b authored by Jérome Perrin's avatar Jérome Perrin

adjust test now that sign_in page was renamed

parent d017682b
...@@ -735,9 +735,9 @@ func TestPrivateBlobDownload(t *testing.T) { ...@@ -735,9 +735,9 @@ func TestPrivateBlobDownload(t *testing.T) {
user_ok = (gitfetch && username == "user-ddd" && password == "password-eee") user_ok = (gitfetch && username == "user-ddd" && password == "password-eee")
} }
// simulate rails which gives "302 location: .../users/sign_in" when no access by token // simulate rails which gives "302 location: .../users/sign_in.zip" when no access by token
if !gitfetch && (token1 == "" && token2 == "" && cookie == "") { if !gitfetch && (token1 == "" && token2 == "" && cookie == "") {
w.Header().Set("location", ".../users/sign_in") w.Header().Set("location", ".../users/sign_in.zip")
w.WriteHeader(302) w.WriteHeader(302)
return return
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment