Skip to content

Commit

Permalink
add thread.sleep after delete index call
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanshah18 committed Nov 24, 2023
1 parent aaa5dd5 commit ea21d32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/integration/java/io/pinecone/helpers/IndexManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static IndexMeta isIndexReady(String indexName, PineconeIndexOperationCli
break;
}

Thread.sleep(500);
Thread.sleep(1000);
}
return indexMeta;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ public void setUp() throws IOException {
}

@AfterEach
public void cleanUp() throws IOException {
public void cleanUp() throws IOException, InterruptedException {
indexOperationClient.deleteIndex(indexName);
Thread.sleep(3500);
}

@Test
Expand Down

0 comments on commit ea21d32

Please sign in to comment.