test(storage): shorten backoff for conf tests (#10037)
This allows TestRetryConformance to run faster. Provided ~10x speedup while running locally.
diff --git a/storage/retry_conformance_test.go b/storage/retry_conformance_test.go
index b6f7de8..7aba821 100644
--- a/storage/retry_conformance_test.go
+++ b/storage/retry_conformance_test.go
@@ -26,9 +26,11 @@
"os"
"strings"
"testing"
+ "time"
"cloud.google.com/go/internal/uid"
storage_v1_tests "cloud.google.com/go/storage/internal/test/conformance"
+ "github.com/googleapis/gax-go/v2"
"github.com/googleapis/gax-go/v2/callctx"
"google.golang.org/api/iterator"
)
@@ -796,6 +798,8 @@
et.Fatalf("GRPC transportClient: %v", err)
}
}
+ // Reduce backoff to get faster test execution.
+ transportClient.SetRetry(WithBackoff(gax.Backoff{Initial: 10 * time.Millisecond}))
et.transportClient = transportClient
}