Give more patience for cache to load in tests
Waiting for just 4 seconds is going to be flaky on
a busy CI system. Allow up to 60 seconds of time
for the cache under test to load.
Change-Id: I4de30fbca29f51884ca18c5ce4dd5c17cb679ee9
diff --git a/src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/MigrateH2CachesLocalDiskIT.java b/src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/MigrateH2CachesLocalDiskIT.java
index 93b0297..360f4cd 100644
--- a/src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/MigrateH2CachesLocalDiskIT.java
+++ b/src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/MigrateH2CachesLocalDiskIT.java
@@ -65,7 +65,7 @@
httpModule = "com.googlesource.gerrit.modules.cache.chroniclemap.HttpModule")
@UseLocalDisk
public class MigrateH2CachesLocalDiskIT extends LightweightPluginDaemonTest {
- private final Duration LOAD_CACHE_WAIT_TIMEOUT = Duration.ofSeconds(4);
+ private final Duration LOAD_CACHE_WAIT_TIMEOUT = Duration.ofSeconds(60);
private String ACCOUNTS_CACHE_NAME = "accounts";
private String PERSISTED_PROJECTS_CACHE_NAME = "persisted_projects";
private String MIGRATION_ENDPOINT = "/plugins/cache-chroniclemap/migrate";