diff --git a/oauth2_test.go b/oauth2_test.go index 1cc14c6..5db78f2 100644 --- a/oauth2_test.go +++ b/oauth2_test.go @@ -300,7 +300,7 @@ func testExchangeRequest_JSONResponse_expiry(t *testing.T, exp string, want, nul conf := newConf(ts.URL) t1 := time.Now().Add(day) tok, err := conf.Exchange(context.Background(), "exchange-code") - t2 := t1.Add(day) + t2 := time.Now().Add(day) if got := (err == nil); got != want { if want {