Skip to content

Commit 4ce6347

Browse files
author
Julien Ruaux
committed
test: Added sleep timeout
1 parent 7132d5b commit 4ce6347

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/redis/trino/TestRediSearchConnectorSmokeTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ private void deleteBeers() throws InterruptedException {
5555
} catch (Exception e) {
5656
// ignore
5757
}
58-
while (redisearch.getTestContext().sync().dbsize() > 0) {
58+
long start = System.currentTimeMillis();
59+
while (redisearch.getTestContext().sync().dbsize() > 0 && System.currentTimeMillis() < start + 3000) {
5960
Thread.sleep(10);
6061
}
6162
}

0 commit comments

Comments
 (0)