Skip to content

Commit

Permalink
fix: test (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc authored Oct 18, 2023
1 parent 7e63a18 commit 3d5ac1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/java/io/supertokens/test/CronjobTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,14 @@ public void testThatCronJobsHaveTenantsInfoAfterRestart() throws Exception {
process.startProcess();
assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STARTED));

if (StorageLayer.getStorage(process.getProcess()).getType() != STORAGE_TYPE.SQL) {
return;
}

if (StorageLayer.isInMemDb(process.getProcess())) {
return;
}

JsonObject coreConfig = new JsonObject();
StorageLayer.getStorage(new TenantIdentifier(null, null, null), process.getProcess())
.modifyConfigToAddANewUserPoolForTesting(coreConfig, 1);
Expand Down

0 comments on commit 3d5ac1b

Please sign in to comment.