|
48 | 48 |
|
49 | 49 | import java.io.IOException; |
50 | 50 |
|
51 | | -import static org.junit.Assert.*; |
52 | 51 | import static io.supertokens.storage.postgresql.QueryExecutorTemplate.update; |
| 52 | +import static org.junit.Assert.*; |
53 | 53 |
|
54 | 54 | public class TestForNoCrashDuringStartup { |
55 | 55 | TestingProcessManager.TestingProcess process; |
@@ -112,7 +112,7 @@ public void testThatCUDRecoversWhenItFailsToAddEntryDuringCreation() throws Exce |
112 | 112 | fail(); |
113 | 113 | } catch (HttpResponseException e) { |
114 | 114 | // ignore |
115 | | - assertEquals("Http error. Status Code: 500. Message: java.sql.SQLException: Simulated error in addTenantIdInTargetStorage", e.getMessage()); |
| 115 | + assertEquals("Http error. Status Code: 500. Message: io.supertokens.pluginInterface.exceptions.StorageQueryException: java.sql.SQLException: Simulated error in addTenantIdInTargetStorage", e.getMessage()); |
116 | 116 | } |
117 | 117 |
|
118 | 118 | MultitenancyQueries.simulateErrorInAddingTenantIdInTargetStorage_forTesting = false; |
@@ -165,7 +165,7 @@ public void testThatCUDRecoversWhenTheDbIsDownDuringCreationButDbComesUpLater() |
165 | 165 | fail(); |
166 | 166 | } catch (HttpResponseException e) { |
167 | 167 | // ignore |
168 | | - assertEquals("Http error. Status Code: 500. Message: java.sql.SQLException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: database \"st5000\" does not exist", e.getMessage()); |
| 168 | + assertEquals("Http error. Status Code: 500. Message: io.supertokens.pluginInterface.exceptions.StorageQueryException: java.sql.SQLException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: database \"st5000\" does not exist", e.getMessage()); |
169 | 169 | } |
170 | 170 |
|
171 | 171 | update(start, "CREATE DATABASE st5000;", pst -> { |
@@ -546,7 +546,7 @@ public void testThatTenantComesToLifeOnceTheTargetDbIsUpAfterCoreRestart() throw |
546 | 546 | fail(); |
547 | 547 | } catch (HttpResponseException e) { |
548 | 548 | // ignore |
549 | | - assertEquals("Http error. Status Code: 500. Message: java.sql.SQLException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: database \"st5000\" does not exist", e.getMessage()); |
| 549 | + assertEquals("Http error. Status Code: 500. Message: io.supertokens.pluginInterface.exceptions.StorageQueryException: java.sql.SQLException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: database \"st5000\" does not exist", e.getMessage()); |
550 | 550 | } |
551 | 551 |
|
552 | 552 | process.kill(false); |
|
0 commit comments