Skip to content

Commit

Permalink
Merge pull request #2204 from josephschorr/increase-max
Browse files Browse the repository at this point in the history
Increase max number of retries on flaky test
  • Loading branch information
josephschorr authored Jan 10, 2025
2 parents 6b926cf + bd63248 commit 9791291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/spicedb/servetesting_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ type spicedbHandle struct {
cleanup func()
}

const retryCount = 5
const retryCount = 8

func newTester(t *testing.T, containerOpts *dockertest.RunOptions, token string, withExistingSchema bool) (*spicedbHandle, error) {
for i := 0; i < retryCount; i++ {
Expand All @@ -186,7 +186,7 @@ func newTester(t *testing.T, containerOpts *dockertest.RunOptions, token string,
return nil, fmt.Errorf("could not connect to docker: %w", err)
}

pool.MaxWait = 30 * time.Second
pool.MaxWait = 60 * time.Second

resource, err := pool.RunWithOptions(containerOpts)
if err != nil {
Expand Down

0 comments on commit 9791291

Please sign in to comment.