Skip to content

Commit 072cb48

Browse files
committed
test: try and improve flaky tests
1 parent 190c3f0 commit 072cb48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/io/supertokens/test/oauth/api/OAuthAPIHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public static void resetOAuthProvider() {
4545
// We query these in an effort to help with possible warm up issues
4646
HttpRequestForOAuthProvider.doGet("http://localhost:4444/.well-known/openid-configuration", new HashMap<>(), new HashMap<>());
4747
HttpRequestForOAuthProvider.doGet("http://localhost:4444/.well-known/jwks.json", new HashMap<>(), new HashMap<>());
48+
Thread.sleep(1000);
4849
} catch (Exception e) {
4950
throw new RuntimeException(e);
5051
}

0 commit comments

Comments
 (0)