feat: switch to proxy when need be

This commit is contained in:
James Houlahan
2020-04-01 17:20:03 +02:00
parent f239e8f3bf
commit ce29d4d74e
36 changed files with 311 additions and 320 deletions

View File

@ -332,7 +332,9 @@ func TestClient_Logout(t *testing.T) {
c.uid = testUID
c.accessToken = testAccessToken
Ok(t, c.Logout())
c.Logout()
// TODO: Check that the client is logged out and sensitive data is cleared eventually.
}
func TestClient_DoUnauthorized(t *testing.T) {
@ -355,7 +357,7 @@ func TestClient_DoUnauthorized(t *testing.T) {
c.expiresAt = aLongTimeAgo
c.cm.tokens[c.userID] = testUID + ":" + testRefreshToken
req, err := NewRequest("GET", "/", nil)
req, err := c.NewRequest("GET", "/", nil)
Ok(t, err)
res, err := c.Do(req, true)