Skip to content
Snippets Groups Projects
Unverified Commit 0780edbc authored by Márk Sági-Kazár's avatar Márk Sági-Kazár Committed by GitHub
Browse files

Merge pull request #2191 from dexidp/flaky-expiry-test

Quick fix flaky test
parents 0d3d7875 ceb4324c
Branches
Tags v2.29.0
No related merge requests found
......@@ -317,7 +317,8 @@ func makeOAuth2Tests(clientID string, clientSecret string, now func() time.Time)
return t1.Sub(t2) < within
}
if !timeEq(token.Expiry, expectedExpiry, time.Second) {
// TODO: This is a flaky test. We need something better (eg. clockwork).
if !timeEq(token.Expiry, expectedExpiry, 2*time.Second) {
return fmt.Errorf("expected expired_in to be %s, got %s", expectedExpiry, token.Expiry)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment