Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-denoble committed Aug 21, 2024
1 parent a7b2002 commit 7540353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pinecone/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions pinecone/test_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7540353

Please sign in to comment.