mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 07:33:21 -05:00
testing: Ensure client CookieJar's aren't shared
This commit is contained in:
parent
96ede2a503
commit
5d50753bc8
@ -17,12 +17,13 @@ func newSession(user *User) (*http.Client, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
client := server.Client()
|
var client http.Client
|
||||||
|
client = *server.Client()
|
||||||
client.Jar = jar
|
client.Jar = jar
|
||||||
|
|
||||||
create(client, user, &u, "/session/", "user")
|
create(&client, user, &u, "/session/", "user")
|
||||||
|
|
||||||
return client, nil
|
return &client, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getSession(client *http.Client) (*handlers.Session, error) {
|
func getSession(client *http.Client) (*handlers.Session, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user