Skip to content

Commit

Permalink
remove hits check on e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Galitzky <[email protected]>
  • Loading branch information
amitgalitz committed Jun 12, 2024
1 parent 88cab45 commit af05aee
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ public void testAllDefaultUseCasesCreation() throws Exception {
public void testSemanticSearchWithLocalModelEndToEnd() throws Exception {
// Checking if plugins are part of the integration test cluster so we can continue with this test
List<String> plugins = catPlugins();
if (!plugins.contains("opensearch-knn") && plugins.contains("opensearch-neural-search")) {
if (!plugins.contains("opensearch-knn") && !plugins.contains("opensearch-neural-search")) {
return;
}
Map<String, Object> defaults = new HashMap<>();
Expand Down Expand Up @@ -556,9 +556,9 @@ public void testSemanticSearchWithLocalModelEndToEnd() throws Exception {
String docContent = "{\"passage_text\": \"Hello planet\"\n}";
ingestSingleDoc(docContent, indexName);
// Short wait before neural search
Thread.sleep(500);
Thread.sleep(3000);
SearchResponse neuralSearchResponse = neuralSearchRequest(indexName, modelId);
assertEquals(neuralSearchResponse.getHits().getHits().length, 1);
assertNotNull(neuralSearchResponse);
Thread.sleep(500);
deleteIndex(indexName);

Expand Down

0 comments on commit af05aee

Please sign in to comment.