Skip to content

Commit

Permalink
kvserver: improve TestClosedTimestampFrozenAfterSubsumption
Browse files Browse the repository at this point in the history
Adopt setupClusterForClosedTSTesting which wraps setupClusterWithDummyRange with goodies such as cockroachdb#107531.
  • Loading branch information
tbg committed Jul 25, 2023
1 parent 44aa4b4 commit a7f1ecf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/kv/kvserver/closed_timestamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,7 @@ func TestClosedTimestampFrozenAfterSubsumption(t *testing.T) {
// Set up the closed timestamp timing such that, when we block a merge and
// transfer the RHS lease, the closed timestamp advances over the LHS
// lease but not over the RHS lease.
const numNodes = 3
tc, _ := setupTestClusterWithDummyRange(t, clusterArgs, "cttest" /* dbName */, "kv" /* tableName */, numNodes)
tc, _, _ := setupClusterForClosedTSTesting(ctx, t, 5*time.Second, 100*time.Millisecond, clusterArgs, "cttest", "kv")
defer tc.Stopper().Stop(ctx)
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))
sqlDB.ExecMultiple(t, strings.Split(fmt.Sprintf(`
Expand Down

0 comments on commit a7f1ecf

Please sign in to comment.