From 3ee01ae3010fc99cf4d8e5fd023b6db0628e025e Mon Sep 17 00:00:00 2001 From: Tianli Feng Date: Tue, 28 Dec 2021 00:54:01 +0000 Subject: [PATCH] [TEST] Fix FsHealthServiceTest by increasing the timeout period before checking the FS health after restoring the FS status Signed-off-by: Tianli Feng --- .../java/org/opensearch/monitor/fs/FsHealthServiceTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/monitor/fs/FsHealthServiceTests.java b/server/src/test/java/org/opensearch/monitor/fs/FsHealthServiceTests.java index c51ba9b0612ba..7517e24d555db 100644 --- a/server/src/test/java/org/opensearch/monitor/fs/FsHealthServiceTests.java +++ b/server/src/test/java/org/opensearch/monitor/fs/FsHealthServiceTests.java @@ -230,7 +230,7 @@ public void testFailsHealthOnHungIOBeyondHealthyTimeout() throws Exception { disruptFileSystemProvider.injectIODelay.set(false); waitUntil( () -> fsHealthSrvc.getHealth().getStatus() == HEALTHY, - delayBetweenChecks + (3 * refreshInterval), + delayBetweenChecks + (4 * refreshInterval), TimeUnit.MILLISECONDS ); fsHealth = fsHealthSrvc.getHealth();