diff --git a/src/integration/java/io/pinecone/helpers/IndexManager.java b/src/integration/java/io/pinecone/helpers/IndexManager.java index c800037e..7ac03fe1 100644 --- a/src/integration/java/io/pinecone/helpers/IndexManager.java +++ b/src/integration/java/io/pinecone/helpers/IndexManager.java @@ -81,7 +81,7 @@ private static String createNewIndex(PineconeControlPlaneClient controlPlaneClie controlPlaneClient.createIndex(createIndexRequest); if (waitUntilReady) { - waitUntilIndexIsReady(controlPlaneClient, indexName); + waitUntilIndexIsReady(controlPlaneClient, indexName, 200000); } return indexName; @@ -92,7 +92,7 @@ public static PineconeConnection createNewIndexAndConnect(PineconeControlPlaneCl controlPlaneClient.createIndex(createIndexRequest); // Wait until index is ready - waitUntilIndexIsReady(controlPlaneClient, indexName); + waitUntilIndexIsReady(controlPlaneClient, indexName, 200000); String host = controlPlaneClient.describeIndex(indexName).getHost(); PineconeClientConfig specificConfig = new PineconeClientConfig().withApiKey(System.getenv("PINECONE_API_KEY")).withEnvironment(System.getenv("PINECONE_ENVIRONMENT"));