Skip to content

Commit eff6a6f

Browse files
authored
Merge pull request #1070 from supertokens/ci/flaky_test_improvement
test: try and improve flaky tests
2 parents e147e03 + 072cb48 commit eff6a6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public static void resetOAuthProvider() {
4141
+ client.getAsJsonObject().get("client_id").getAsString(),
4242
new HashMap<>(), new HashMap<>(), new JsonObject());
4343
}
44+
45+
// We query these in an effort to help with possible warm up issues
46+
HttpRequestForOAuthProvider.doGet("http://localhost:4444/.well-known/openid-configuration", new HashMap<>(), new HashMap<>());
47+
HttpRequestForOAuthProvider.doGet("http://localhost:4444/.well-known/jwks.json", new HashMap<>(), new HashMap<>());
48+
Thread.sleep(1000);
4449
} catch (Exception e) {
4550
throw new RuntimeException(e);
4651
}

0 commit comments

Comments
 (0)