Skip to content

Commit

Permalink
Merge pull request #1070 from supertokens/ci/flaky_test_improvement
Browse files Browse the repository at this point in the history
test: try and improve flaky tests
  • Loading branch information
porcellus authored Oct 28, 2024
2 parents e147e03 + 072cb48 commit eff6a6f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public static void resetOAuthProvider() {
+ client.getAsJsonObject().get("client_id").getAsString(),
new HashMap<>(), new HashMap<>(), new JsonObject());
}

// We query these in an effort to help with possible warm up issues
HttpRequestForOAuthProvider.doGet("http://localhost:4444/.well-known/openid-configuration", new HashMap<>(), new HashMap<>());
HttpRequestForOAuthProvider.doGet("http://localhost:4444/.well-known/jwks.json", new HashMap<>(), new HashMap<>());
Thread.sleep(1000);
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit eff6a6f

Please sign in to comment.