Skip to content

Commit f290bc7

Browse files
Increased timeout again for CouchDB 3.4
1 parent 2968077 commit f290bc7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

couchdb/src/test/java/me/retrodaredevil/couchdbjava/integration/test/ReplicatorTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ void test(DatabaseService databaseService) throws CouchDbException, JsonProcessi
6565
}
6666

6767

68-
// NOTE: For CouchDB 3.3 and lower, we were able to get away with a timeout of about 7.5 seconds, but for CouchDB 3.4 we increased that
69-
for (int i = 0; i < 20 && !target.exists(); i++) { // 20 iterations is ~10 seconds maximum
68+
// NOTE: For CouchDB 3.3 and lower, we were able to get away with a timeout of about 7.5 seconds
69+
// For CouchDB 3.4 we need about a 10-second timeout.
70+
// I've increased that timeout to 20 seconds, as it seems integration tests will sometimes fail even with a 10 second timeout
71+
for (int i = 0; i < 40 && !target.exists(); i++) { // 40 iterations is ~20 seconds maximum
7072
//noinspection BusyWait
7173
Thread.sleep(500);
7274
}

0 commit comments

Comments
 (0)