Skip to content

Commit 976c945

Browse files
authored
fix: test fix (#819)
1 parent 538ae12 commit 976c945

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ee/src/test/java/io/supertokens/ee/test/TestMultitenancyStats.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import io.supertokens.ee.test.httpRequest.HttpRequestForTesting;
1111
import io.supertokens.featureflag.FeatureFlag;
1212
import io.supertokens.multitenancy.Multitenancy;
13+
import io.supertokens.pluginInterface.STORAGE_TYPE;
1314
import io.supertokens.pluginInterface.multitenancy.*;
1415
import io.supertokens.storageLayer.StorageLayer;
1516
import io.supertokens.webserver.WebserverAPI;
@@ -46,6 +47,10 @@ public void testPaidStatsIsSentForAllAppsInMultitenancy() throws Exception {
4647
CronTaskTest.getInstance(process.main).setIntervalInSeconds(EELicenseCheck.RESOURCE_KEY, 1);
4748
Assert.assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STARTED));
4849

50+
if (StorageLayer.getStorage(process.getProcess()).getType() != STORAGE_TYPE.SQL) {
51+
return;
52+
}
53+
4954
if (StorageLayer.isInMemDb(process.main)) {
5055
// cause we keep all features enabled in memdb anyway
5156
return;

0 commit comments

Comments
 (0)