Skip to content

Commit

Permalink
fix: cicd tests (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc authored Feb 8, 2024
1 parent e2ac161 commit 8093372
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void testDownTimeWhenChangingConnectionPoolSize() throws Exception {
config
), false);

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

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

Expand All @@ -157,7 +157,7 @@ public void testDownTimeWhenChangingConnectionPoolSize() throws Exception {
successAfterErrorTime.set(System.currentTimeMillis());
}
} catch (StorageQueryException e) {
if (e.getMessage().contains("called on closed connection")) {
if (e.getMessage().contains("called on closed connection") || e.getMessage().contains("Connection is closed")) {
if (firstErrorTime.get() == -1) {
firstErrorTime.set(System.currentTimeMillis());
}
Expand Down

0 comments on commit 8093372

Please sign in to comment.