Skip to content

Commit 1ef5e42

Browse files
committed
fix: revert deadlock test
1 parent b94ef7a commit 1ef5e42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/io/supertokens/storage/postgresql/test/DeadlockTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public void testConcurrentDeleteAndInsert() throws Exception {
519519
t1Failed.set(false);
520520

521521
return null;
522-
}/*, TransactionIsolationLevel.READ_COMMITTED */);
522+
}, SQLStorage.TransactionIsolationLevel.SERIALIZABLE);
523523
} catch (StorageQueryException | StorageTransactionLogicException e) {
524524
// This is expected because of "could not serialize access"
525525
t1Failed.set(true);
@@ -652,7 +652,7 @@ public void testLinkAccountsInParallel() throws Exception {
652652
.checkOrWaitForEventInPlugin(
653653
io.supertokens.storage.postgresql.ProcessState.PROCESS_STATE.DEADLOCK_NOT_RESOLVED));
654654

655-
assertNull(process
655+
assertNotNull(process
656656
.checkOrWaitForEventInPlugin(
657657
io.supertokens.storage.postgresql.ProcessState.PROCESS_STATE.DEADLOCK_FOUND));
658658

0 commit comments

Comments
 (0)