Skip to content

Commit

Permalink
test: try and improve flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Oct 28, 2024
1 parent e147e03 commit 190c3f0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ 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<>());
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 190c3f0

Please sign in to comment.