Skip to content

Commit

Permalink
remove hits check on e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
amitgalitz committed Jun 12, 2024
1 parent 88cab45 commit f0106b2
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 f0106b2

Please sign in to comment.