Skip to content

Commit

Permalink
Merge branch 'master' into regen_gocloud
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss committed Oct 12, 2021
2 parents 0ff9d52 + d28ba78 commit 9e3392f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spanner/integration_test.go
Expand Up @@ -3171,8 +3171,9 @@ func TestIntegration_StartBackupOperation(t *testing.T) {
skipEmulatorTest(t)
t.Parallel()

// Backups can be slow, so use a 30 minute timeout.
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Minute)
startTime := time.Now()
// Backups can be slow, so use 1 hour timeout.
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Hour)
defer cancel()
_, testDatabaseName, cleanup := prepareIntegrationTest(ctx, t, DefaultSessionPoolConfig, backuDBStatements)
defer cleanup()
Expand All @@ -3190,6 +3191,7 @@ func TestIntegration_StartBackupOperation(t *testing.T) {
if err != nil {
t.Fatal(err)
}
t.Logf("create backup operation took: %v\n", time.Since(startTime))
respMetadata, err := respLRO.Metadata()
if err != nil {
t.Fatalf("backup response metadata, got error %v, want nil", err)
Expand Down

0 comments on commit 9e3392f

Please sign in to comment.