From 1bde28151d16374f7f15f35f9f56fa2f5913b75a Mon Sep 17 00:00:00 2001 From: Bukhtawar Khan Date: Tue, 4 Oct 2022 10:47:14 +0530 Subject: [PATCH] Update client/rest-high-level/src/test/java/org/opensearch/client/PitIT.java --- .../src/test/java/org/opensearch/client/PitIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/rest-high-level/src/test/java/org/opensearch/client/PitIT.java b/client/rest-high-level/src/test/java/org/opensearch/client/PitIT.java index 09816101cc901..f08026f97cfff 100644 --- a/client/rest-high-level/src/test/java/org/opensearch/client/PitIT.java +++ b/client/rest-high-level/src/test/java/org/opensearch/client/PitIT.java @@ -127,7 +127,7 @@ public void onFailure(Exception e) { }; highLevelClient().getAllPitsAsync(RequestOptions.DEFAULT, getPitsListener); highLevelClient().deleteAllPitsAsync(RequestOptions.DEFAULT, deletePitListener); - countDownLatch.await(10, TimeUnit.SECONDS); + assertTrue(countDownLatch.await(10, TimeUnit.SECONDS); // validate no pits case getAllPitResponse = highLevelClient().getAllPits(RequestOptions.DEFAULT); assertTrue(getAllPitResponse.getPitInfos().size() == 0);