Skip to content

Commit 31f0ba4

Browse files
authored
[CI] Fix MergeWithFailureIT (#135447) (#135521)
Wait for the store to be closed, don't assume it happens immediately. Closes #135443
1 parent b1c4d0f commit 31f0ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/internalClusterTest/java/org/elasticsearch/index/engine/MergeWithFailureIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public void testFailedMergeDeadlock() throws Exception {
321321
ensureRed(indexName);
322322

323323
// verify that the shard store is effectively closed
324-
assertTrue(plugin.shardStoreClosedListener.isDone());
324+
safeGet(plugin.shardStoreClosedListener);
325325

326326
if (closingThread != null) {
327327
closingThread.join();

0 commit comments

Comments
 (0)