Skip to content

Commit 0b9df8f

Browse files
authored
chore: updates api timeouts in tests (#549)
1 parent 55f39f8 commit 0b9df8f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

ee/src/test/java/io/supertokens/ee/test/api/DeleteLicenseKeyAPITest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void testDeletingLicenseKeyWhenItIsNotSet() throws Exception {
5151

5252
JsonObject response = HttpRequestForTesting.sendJsonDELETERequest(process.getProcess(), "",
5353
"http://localhost:3567/ee/license",
54-
null, 1000, 1000, null, WebserverAPI.getLatestCDIVersion(), "");
54+
null, 10000, 10000, null, WebserverAPI.getLatestCDIVersion(), "");
5555
assertEquals(1, response.entrySet().size());
5656
assertEquals("OK", response.get("status").getAsString());
5757

@@ -83,7 +83,7 @@ public void testDeletingLicenseKey() throws Exception {
8383

8484
JsonObject response = HttpRequestForTesting.sendJsonDELETERequest(process.getProcess(), "",
8585
"http://localhost:3567/ee/license",
86-
null, 1000, 1000, null, WebserverAPI.getLatestCDIVersion(), "");
86+
null, 10000, 10000, null, WebserverAPI.getLatestCDIVersion(), "");
8787
assertEquals(1, response.entrySet().size());
8888
assertEquals("OK", response.get("status").getAsString());
8989

ee/src/test/java/io/supertokens/ee/test/api/GetLicenseKeyAPITest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void testRetrievingLicenseKeyWhenItIsNotSet() throws Exception {
4242

4343
JsonObject response = HttpRequestForTesting.sendGETRequest(process.getProcess(), "",
4444
"http://localhost:3567/ee/license",
45-
null, 1000, 1000, null, WebserverAPI.getLatestCDIVersion(), "");
45+
null, 10000, 10000, null, WebserverAPI.getLatestCDIVersion(), "");
4646
Assert.assertEquals(1, response.entrySet().size());
4747
Assert.assertEquals("NO_LICENSE_KEY_FOUND_ERROR", response.get("status").getAsString());
4848

@@ -64,7 +64,7 @@ public void testRetrievingLicenseKeyWhenItIsSet() throws Exception {
6464
// retrieve license key
6565
JsonObject response = HttpRequestForTesting.sendGETRequest(process.getProcess(), "",
6666
"http://localhost:3567/ee/license",
67-
null, 1000, 1000, null, WebserverAPI.getLatestCDIVersion(), "");
67+
null, 10000, 10000, null, WebserverAPI.getLatestCDIVersion(), "");
6868

6969
assertEquals(2, response.entrySet().size());
7070
assertEquals("OK", response.get("status").getAsString());
@@ -93,7 +93,7 @@ public void testRetrievingLicenseKeyWhenEEFolderDoesNotExist() throws Exception
9393
// retrieve license key
9494
JsonObject response = HttpRequestForTesting.sendGETRequest(process.getProcess(), "",
9595
"http://localhost:3567/ee/license",
96-
null, 1000, 1000, null, WebserverAPI.getLatestCDIVersion(), "");
96+
null, 10000, 10000, null, WebserverAPI.getLatestCDIVersion(), "");
9797

9898
Assert.assertEquals(1, response.entrySet().size());
9999
Assert.assertEquals("NO_LICENSE_KEY_FOUND_ERROR", response.get("status").getAsString());

ee/src/test/java/io/supertokens/ee/test/api/SetLicenseKeyAPITest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void testSettingBadInput() throws Exception {
5858
try {
5959
HttpRequestForTesting.sendJsonPUTRequest(process.getProcess(), "",
6060
"http://localhost:3567/ee/license",
61-
requestBody, 1000, 1000, null, WebserverAPI.getLatestCDIVersion(), "");
61+
requestBody, 10000, 10000, null, WebserverAPI.getLatestCDIVersion(), "");
6262
throw new Exception("should never come here");
6363
} catch (HttpResponseException e) {
6464
assertTrue(e.statusCode == 400 && e.getMessage().equals(
@@ -91,7 +91,7 @@ public void testSettingLicenseKeyWhenEEFolderDoesNotExist() throws Exception {
9191

9292
JsonObject response = HttpRequestForTesting.sendJsonPUTRequest(process.getProcess(), "",
9393
"http://localhost:3567/ee/license",
94-
requestBody, 1000, 1000, null, WebserverAPI.getLatestCDIVersion(), "");
94+
requestBody, 10000, 10000, null, WebserverAPI.getLatestCDIVersion(), "");
9595
assertEquals(1, response.entrySet().size());
9696
assertEquals("MISSING_EE_FOLDER_ERROR", response.get("status").getAsString());
9797

@@ -110,7 +110,7 @@ public void testSettingLicenseKeySuccessfully() throws Exception {
110110

111111
JsonObject response = HttpRequestForTesting.sendJsonPUTRequest(process.getProcess(), "",
112112
"http://localhost:3567/ee/license",
113-
requestBody, 1000, 1000, null, WebserverAPI.getLatestCDIVersion(), "");
113+
requestBody, 10000, 10000, null, WebserverAPI.getLatestCDIVersion(), "");
114114
assertEquals(1, response.entrySet().size());
115115
assertEquals("OK", response.get("status").getAsString());
116116

@@ -138,7 +138,7 @@ public void testCallingAPIToSyncLicenseKey() throws Exception {
138138

139139
JsonObject response = HttpRequestForTesting.sendJsonPUTRequest(process.getProcess(), "",
140140
"http://localhost:3567/ee/license",
141-
new JsonObject(), 1000, 1000, null, WebserverAPI.getLatestCDIVersion(), "");
141+
new JsonObject(), 10000, 10000, null, WebserverAPI.getLatestCDIVersion(), "");
142142
assertEquals(1, response.entrySet().size());
143143
assertEquals("OK", response.get("status").getAsString());
144144

@@ -163,7 +163,7 @@ public void testSettingInvalidLicenseKey() throws Exception {
163163

164164
JsonObject response = HttpRequestForTesting.sendJsonPUTRequest(process.getProcess(), "",
165165
"http://localhost:3567/ee/license",
166-
requestBody, 1000, 1000, null, WebserverAPI.getLatestCDIVersion(), "");
166+
requestBody, 10000, 10000, null, WebserverAPI.getLatestCDIVersion(), "");
167167

168168
assertEquals(1, response.entrySet().size());
169169
assertEquals("INVALID_LICENSE_KEY_ERROR", response.get("status").getAsString());

0 commit comments

Comments
 (0)