Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: tests #1024

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/test/java/io/supertokens/test/StorageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ public void storageDeadAndAlive() throws InterruptedException, IOException, Http
fail();
} catch (HttpResponseException ex) {
assertEquals(ex.statusCode, 500);
assertEquals(ex.getMessage(), "Http error. Status Code: 500. Message: Internal Error");
assertEquals(ex.getMessage(), "Http error. Status Code: 500. Message: java.sql.SQLException: Storage layer disabled");
}

storage.setStorageLayerEnabled(true);
Expand All @@ -765,7 +765,7 @@ public void storageDeadAndAlive() throws InterruptedException, IOException, Http
fail();
} catch (HttpResponseException ex) {
assertEquals(ex.statusCode, 500);
assertEquals(ex.getMessage(), "Http error. Status Code: 500. Message: Internal Error");
assertEquals(ex.getMessage(), "Http error. Status Code: 500. Message: java.sql.SQLException: Storage layer disabled");
}

storage.setStorageLayerEnabled(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void testImportingAUsesrFromFirebaseWithoutSettingTheSignerKey() throws E
throw new Exception("Should not come here");
} catch (io.supertokens.test.httpRequest.HttpResponseException e) {
assertTrue(e.statusCode == 500
&& e.getMessage().equals("Http error. Status Code: 500. Message: Internal Error"));
&& e.getMessage().equals("Http error. Status Code: 500. Message: 'firebase_password_hashing_signer_key' cannot be null"));
}

process.kill();
Expand Down Expand Up @@ -388,7 +388,7 @@ public void testSigningInAUserWithFirebasePasswordHashWithoutSettingTheSignerKey
throw new Exception("Should not come here");
} catch (io.supertokens.test.httpRequest.HttpResponseException e) {
assertTrue(e.statusCode == 500
&& e.getMessage().equals("Http error. Status Code: 500. Message: Internal Error"));
&& e.getMessage().equals("Http error. Status Code: 500. Message: 'firebase_password_hashing_signer_key' cannot be null"));
}

process.kill();
Expand Down
Loading