Skip to content

Commit

Permalink
add a bit of sleep to configure index integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-denoble committed Dec 20, 2024
1 parent f924274 commit 9e60454
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pinecone/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ func (ts *IntegrationTests) TestConfigureIndexScaleUpNoPods() {
isReady, _ := WaitUntilIndexReady(ts, context.Background())
require.True(ts.T(), isReady, "Expected index to be ready")

time.Sleep(500 * time.Millisecond)

err = ts.client.DeleteIndex(context.Background(), name)
require.NoError(ts.T(), err)
}
Expand Down Expand Up @@ -244,6 +246,8 @@ func (ts *IntegrationTests) TestConfigureIndexScaleUpNoReplicas() {
isReady, _ := WaitUntilIndexReady(ts, context.Background())
require.True(ts.T(), isReady, "Expected index to be ready")

time.Sleep(500 * time.Millisecond)

err = ts.client.DeleteIndex(context.Background(), name)
require.NoError(ts.T(), err)
}
Expand Down

0 comments on commit 9e60454

Please sign in to comment.