Skip to content

Commit d8bd1b6

Browse files
committed
roachtest: set positive workload seed in or recovery test
Informs #154345 Release note: none
1 parent 0aafbd9 commit d8bd1b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cmd/roachtest/tests/backup_restore_roundtrip.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ func createDriversForBackupRestore(
448448

449449
func testOnlineRestoreRecovery(ctx context.Context, t test.Test, c cluster.Cluster) {
450450
testRNG, seed := randutil.NewLockedPseudoRand()
451+
workloadSeed := testRNG.Int63()
451452
t.L().Printf("random seed: %d", seed)
452453

453454
c.Start(ctx, t.L(), roachtestutil.MaybeUseMemoryBudget(t, 50), install.MakeClusterSettings(), c.CRDBNodes())
@@ -466,7 +467,7 @@ func testOnlineRestoreRecovery(ctx context.Context, t test.Test, c cluster.Clust
466467

467468
dbs := []string{"bank", "tpcc", schemaChangeDB}
468469
d, runBackgroundWorkload, _, err := createDriversForBackupRestore(
469-
ctx, t, c, m, testRNG, seed, testUtils, dbs,
470+
ctx, t, c, m, testRNG, workloadSeed, testUtils, dbs,
470471
)
471472
if err != nil {
472473
return err

0 commit comments

Comments
 (0)