diff --git a/pinecone/client_test.go b/pinecone/client_test.go index 3df3764..6cb5157 100644 --- a/pinecone/client_test.go +++ b/pinecone/client_test.go @@ -1209,7 +1209,8 @@ func TestBuildClientBaseOptionsUnit(t *testing.T) { // Helper functions: func (ts *IntegrationTests) deleteIndex(name string) error { - time.Sleep(3 * time.Second) + time.Sleep(5 * time.Second) + _, err := WaitUntilIndexReady(ts, context.Background()) require.NoError(ts.T(), err) diff --git a/pinecone/test_suite.go b/pinecone/test_suite.go index 242b599..8403c82 100644 --- a/pinecone/test_suite.go +++ b/pinecone/test_suite.go @@ -137,6 +137,7 @@ func WaitUntilIndexReady(ts *IntegrationTests, ctx context.Context) (bool, error } if index.Status.State == Ready && index.Status.Ready { fmt.Printf("Index \"%s\" is ready!\n", ts.idxName) + fmt.Printf("BUT YEAH YOU SHOULD DOUBLE CHECK : %+v\n", index.Status) return true, nil } else { fmt.Printf("Index \"%s\" not ready yet, retrying... (%d/%d)\n", ts.idxName, i, maxRetries)