Skip to content

Commit

Permalink
bump wait time on configure index tests to see if that helps integrat…
Browse files Browse the repository at this point in the history
…ion flakiness
  • Loading branch information
austin-denoble committed Jan 6, 2025
1 parent 923f52c commit c3e91ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pinecone/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ func (ts *IntegrationTests) TestConfigureIndexScaleUpNoPods() {
require.NoError(ts.T(), err)

// give index a bit of time to start upgrading before we poll
time.Sleep(500 * time.Millisecond)
time.Sleep(2 * time.Second)

isReady, _ := WaitUntilIndexReady(ts, context.Background())
require.True(ts.T(), isReady, "Expected index to be ready")

time.Sleep(500 * time.Millisecond)
time.Sleep(2 * time.Second)

err = ts.client.DeleteIndex(context.Background(), name)
require.NoError(ts.T(), err)
Expand All @@ -241,12 +241,12 @@ func (ts *IntegrationTests) TestConfigureIndexScaleUpNoReplicas() {
require.NoError(ts.T(), err)

// give index a bit of time to start upgrading before we poll
time.Sleep(500 * time.Millisecond)
time.Sleep(2 * time.Second)

isReady, _ := WaitUntilIndexReady(ts, context.Background())
require.True(ts.T(), isReady, "Expected index to be ready")

time.Sleep(500 * time.Millisecond)
time.Sleep(2 * time.Second)

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

0 comments on commit c3e91ef

Please sign in to comment.