Skip to content

Commit

Permalink
test(storage): add timeout for bucket create test (googleapis#10216)
Browse files Browse the repository at this point in the history
This test has flaked a few times lately after running for
the full duration of the integration test run timeout, causing
a panic. Add a shorter timeout to help debug future flakes.

Updates googleapis#10178
  • Loading branch information
tritone committed May 17, 2024
1 parent 203cc59 commit 4dd2f4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions storage/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,12 @@ var readCases = []readCase{
func TestIntegration_BucketCreateDelete(t *testing.T) {
ctx := skipJSONReads(context.Background(), "no reads in test")
multiTransportTest(ctx, t, func(t *testing.T, ctx context.Context, _ string, prefix string, client *Client) {

// This timeout is added for debugging #10178
// TODO: remove when issue is resolved.
ctx, cancel := context.WithTimeout(ctx, 5*time.Minute)
defer cancel()

projectID := testutil.ProjID()

labels := map[string]string{
Expand Down

0 comments on commit 4dd2f4d

Please sign in to comment.