From 80933725a73e43db9e1c679f2766f8f1d71f97ff Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Thu, 8 Feb 2024 12:36:37 +0530 Subject: [PATCH] fix: cicd tests (#92) --- .../supertokens/storage/mysql/test/DbConnectionPoolTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/supertokens/storage/mysql/test/DbConnectionPoolTest.java b/src/test/java/io/supertokens/storage/mysql/test/DbConnectionPoolTest.java index 97ed1f8..3a4bc7f 100644 --- a/src/test/java/io/supertokens/storage/mysql/test/DbConnectionPoolTest.java +++ b/src/test/java/io/supertokens/storage/mysql/test/DbConnectionPoolTest.java @@ -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")); @@ -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()); }