From 16def2df6c489e0f219c5f5d7bfaea8b9b40af3e Mon Sep 17 00:00:00 2001 From: Joel Coutinho Date: Fri, 6 May 2022 15:11:29 +0530 Subject: [PATCH] test: fix createAnAuthUserAssignRolesAndDeleteUser to not run in non sql dbs (#442) --- .../java/io/supertokens/test/userRoles/UserRolesTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/io/supertokens/test/userRoles/UserRolesTest.java b/src/test/java/io/supertokens/test/userRoles/UserRolesTest.java index bac38c77e..906795447 100644 --- a/src/test/java/io/supertokens/test/userRoles/UserRolesTest.java +++ b/src/test/java/io/supertokens/test/userRoles/UserRolesTest.java @@ -993,6 +993,10 @@ public void createAnAuthUserAssignRolesAndDeleteUser() throws Exception { TestingProcessManager.TestingProcess process = TestingProcessManager.start(args); assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STARTED)); + if (StorageLayer.getStorage(process.getProcess()).getType() != STORAGE_TYPE.SQL) { + return; + } + UserRolesSQLStorage storage = StorageLayer.getUserRolesStorage(process.main); // create a role