Skip to content

Commit

Permalink
Merge pull request #233 from supertokens/flaky-test
Browse files Browse the repository at this point in the history
fix: flaky test
  • Loading branch information
porcellus authored Oct 28, 2024
2 parents e21f4bb + 0362003 commit 847f24d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,16 @@ public void testMinimumIdleConnectionForTenants() throws Exception {

Thread.sleep(1000); // let the new tenant be ready

for (int retry = 0; retry < 5; retry++) {
try {
assertEquals(10, start.getDbActivityCount("st1"));
break;
} catch (AssertionError e) {
Thread.sleep(1000);
continue;
}
}

assertEquals(10, start.getDbActivityCount("st1"));

// change connection pool size
Expand Down

0 comments on commit 847f24d

Please sign in to comment.