Skip to content

Commit 9d6aa82

Browse files
committed
sctestbackupccl: deflake schemachanger tests during BACKUP
Increase the timeout for waiting for a schema change to complete, which can take a longer time if there are concurrent backups. Release note: None
1 parent a491fd9 commit 9d6aa82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/sql/schemachanger/sctest/backup.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"strings"
1515
"sync/atomic"
1616
"testing"
17+
"time"
1718

1819
"github.com/cockroachdb/cockroach/pkg/clusterversion"
1920
"github.com/cockroachdb/cockroach/pkg/sql/parser"
@@ -194,6 +195,7 @@ func backupSuccess(t *testing.T, factory TestServerFactory, cs CumulativeTestCas
194195
runfn := func(s serverutils.TestServerInterface, db *gosql.DB) {
195196
dbForBackup.Store(db)
196197
tdb := sqlutils.MakeSQLRunner(db)
198+
tdb.SucceedsSoonDuration = 5 * time.Minute
197199

198200
// Setup the test cluster.
199201
tdb.Exec(t, "CREATE DATABASE backups")

0 commit comments

Comments
 (0)