From 11de227b4e649edb2fcc0c1780eeebeedda85f07 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Tue, 19 Sep 2023 13:01:50 +0530 Subject: [PATCH] fix: test fix --- .../java/io/supertokens/ee/test/TestMultitenancyStats.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ee/src/test/java/io/supertokens/ee/test/TestMultitenancyStats.java b/ee/src/test/java/io/supertokens/ee/test/TestMultitenancyStats.java index d9a658e91..189d2b1d1 100644 --- a/ee/src/test/java/io/supertokens/ee/test/TestMultitenancyStats.java +++ b/ee/src/test/java/io/supertokens/ee/test/TestMultitenancyStats.java @@ -10,6 +10,7 @@ import io.supertokens.ee.test.httpRequest.HttpRequestForTesting; import io.supertokens.featureflag.FeatureFlag; import io.supertokens.multitenancy.Multitenancy; +import io.supertokens.pluginInterface.STORAGE_TYPE; import io.supertokens.pluginInterface.multitenancy.*; import io.supertokens.storageLayer.StorageLayer; import io.supertokens.webserver.WebserverAPI; @@ -46,6 +47,10 @@ public void testPaidStatsIsSentForAllAppsInMultitenancy() throws Exception { CronTaskTest.getInstance(process.main).setIntervalInSeconds(EELicenseCheck.RESOURCE_KEY, 1); Assert.assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STARTED)); + if (StorageLayer.getStorage(process.getProcess()).getType() != STORAGE_TYPE.SQL) { + return; + } + if (StorageLayer.isInMemDb(process.main)) { // cause we keep all features enabled in memdb anyway return;