Skip to content

Commit

Permalink
sleep tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-denoble committed Feb 14, 2024
1 parent 4a2305d commit 817da41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 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 @@ -116,7 +116,7 @@ public static PineconeConnection createNewIndexAndConnect(PineconeControlPlaneCl
// Wait until index is ready
waitUntilIndexIsReady(controlPlaneClient, indexName, 200000);
// wait a bit more before we connect...
Thread.sleep(10000);
Thread.sleep(15000);

String host = controlPlaneClient.describeIndex(indexName).getHost();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public static void setUpIndexAndCollection() throws InterruptedException {
}

@AfterAll
public static void cleanUp() {
public static void cleanUp() throws InterruptedException {
// wait for things to settle before cleanup...
Thread.sleep(3000);
for (String index : indexes) {
controlPlaneClient.deleteIndex(index);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ public static void setUp() throws InterruptedException {
}

@AfterAll
public static void cleanUp() {
public static void cleanUp() throws InterruptedException {
// wait for things to settle before cleanup...
Thread.sleep(3000);
// Clean up indexes
for (String index : indexes) {
controlPlaneClient.deleteIndex(index);
Expand Down Expand Up @@ -106,7 +108,7 @@ public void testIndexToCollectionHappyPath() throws InterruptedException {
System.out.println("Index " + newIndexName + " created from collection " + collectionName + ". Waiting until index is ready...");
waitUntilIndexIsReady(controlPlaneClient, newIndexName, 250000);
// wait a bit more to make sure index is ready...
Thread.sleep(15000);
Thread.sleep(30000);

IndexModel indexDescription = controlPlaneClient.describeIndex(newIndexName);
assertEquals(indexDescription.getName(), newIndexName);
Expand Down

0 comments on commit 817da41

Please sign in to comment.