From 8ec2ba83037e48ba36f41ccbfe0fd8b076c82db6 Mon Sep 17 00:00:00 2001 From: Varun Jain Date: Mon, 8 Jan 2024 12:48:08 -0800 Subject: [PATCH] modifying check in hybrid search Signed-off-by: Varun Jain --- .../java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java b/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java index 6e13fc7a9..4edec0750 100644 --- a/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java +++ b/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java @@ -94,9 +94,9 @@ private void validateTestIndex(String modelId) throws Exception { 1, Map.of("search_pipeline", SEARCH_PIPELINE_NAME) ); + assertNotNull(searchResponseAsMap); int hits = getHitCount(searchResponseAsMap); assertEquals(1, hits); - assertNotNull(searchResponseAsMap); } public HybridQueryBuilder getQueryBuilder(String modelId) {