Skip to content

Commit

Permalink
fix: ignore reset error (#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamassoltesz authored Jan 10, 2025
1 parent ba9d580 commit 18d3b66
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/test/java/io/supertokens/test/oauth/api/OAuthAPIHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@

package io.supertokens.test.oauth.api;

import java.util.HashMap;
import java.util.Map;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;

import com.google.gson.JsonElement;
import com.google.gson.JsonObject;

import io.supertokens.Main;
import io.supertokens.oauth.HttpRequestForOAuthProvider;
import io.supertokens.test.httpRequest.HttpRequestForTesting;
import io.supertokens.utils.SemVer;

import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;

public class OAuthAPIHelper {
public static void resetOAuthProvider() {
try {
Expand All @@ -47,7 +46,7 @@ public static void resetOAuthProvider() {
HttpRequestForOAuthProvider.doGet("http://localhost:4444/.well-known/jwks.json", new HashMap<>(), new HashMap<>());
Thread.sleep(1000);
} catch (Exception e) {
throw new RuntimeException(e);
//ignore error. later on the tests would fail anyway
}
}

Expand Down

0 comments on commit 18d3b66

Please sign in to comment.