Skip to content

Commit

Permalink
testcluster: don't create two stoppers in StartTestCluster
Browse files Browse the repository at this point in the history
This looks harmless because the first stopper was never actually
used, but it was caught by cockroachdb#51413.
  • Loading branch information
nvanbenschoten committed Jul 22, 2020
1 parent 89dda79 commit 83dfef8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/testutils/testcluster/testcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ func StartTestCluster(t testing.TB, nodes int, args base.TestClusterArgs) *TestC
stopper: stop.NewStopper(),
replicationMode: args.ReplicationMode,
}
tc.stopper = stop.NewStopper()

// Check if any of the args have a locality set.
noLocalities := true
Expand Down

0 comments on commit 83dfef8

Please sign in to comment.