1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-26 23:42:29 -05:00

testing: Ensure client CookieJar's aren't shared

This commit is contained in:
Aaron Lindsay 2017-10-23 05:48:12 -04:00
parent 96ede2a503
commit 5d50753bc8

View File

@ -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) {