Skip to content

Commit

Permalink
fix: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Apr 16, 2024
1 parent 2955daa commit 4b41024
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ public void testThatCoreDoesNotStartWithThereIsAnErrorDuringTenantCreation() thr
TenantConfig[] allTenants = MultitenancyHelper.getInstance(process.getProcess()).getAllTenants();
assertEquals(2, allTenants.length); // should have the new CUD

MultitenancyQueries.simulateErrorInAddingTenantIdInTargetStorage = false;

process.kill(false);
assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STOPPED));

Expand All @@ -204,6 +202,11 @@ public void testThatCoreDoesNotStartWithThereIsAnErrorDuringTenantCreation() thr
.setKeyValue(FeatureFlagTestContent.ENABLED_FEATURES, new EE_FEATURES[]{EE_FEATURES.MULTI_TENANCY});
assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STARTED));

allTenants = MultitenancyHelper.getInstance(process.getProcess()).getAllTenants();
assertEquals(2, allTenants.length); // should have the new CUD

MultitenancyQueries.simulateErrorInAddingTenantIdInTargetStorage = false;

// this should succeed now
tpSignInUpAndGetResponse(new TenantIdentifier("127.0.0.1", null, null), "google", "googleid1", "[email protected]", process.getProcess(), SemVer.v5_0);
}
Expand Down

0 comments on commit 4b41024

Please sign in to comment.