Skip to content

Commit

Permalink
Even higher timeout for replication for CouchDB 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
retrodaredevil committed Dec 11, 2024
1 parent f290bc7 commit f9d559f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ void test(DatabaseService databaseService) throws CouchDbException, JsonProcessi
}


// TODO We should probably try and change a configuration value in CouchDB to convince this to execute faster
// NOTE: For CouchDB 3.3 and lower, we were able to get away with a timeout of about 7.5 seconds
// For CouchDB 3.4 we need about a 10-second timeout.
// I've increased that timeout to 20 seconds, as it seems integration tests will sometimes fail even with a 10 second timeout
for (int i = 0; i < 40 && !target.exists(); i++) { // 40 iterations is ~20 seconds maximum
for (int i = 0; i < 120 && !target.exists(); i++) { // 120 iterations is ~60 seconds maximum
//noinspection BusyWait
Thread.sleep(500);
}
Expand Down

0 comments on commit f9d559f

Please sign in to comment.