Skip to content

Commit

Permalink
Merge pull request cockroachdb#105743 from cockroachdb/blathers/backp…
Browse files Browse the repository at this point in the history
…ort-release-23.1-105716

release-23.1: roachtest: deflake c2c driver
  • Loading branch information
msbutler authored Jun 28, 2023
2 parents d45c830 + 9a38aed commit 382d9af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/cmd/roachtest/tests/cluster_to_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,17 +834,18 @@ func registerClusterToCluster(r registry.Registry) {
func(ctx context.Context, t test.Test, c cluster.Cluster) {
rd := makeReplicationDriver(t, c, sp)
rd.setupC2C(ctx, t, c)
m := rd.newMonitor(ctx)

m := c.NewMonitor(ctx)
hc := roachtestutil.NewHealthChecker(t, c, rd.crdbNodes())
m.Go(func(ctx context.Context) error {
require.NoError(t, hc.Runner(ctx))
return nil
})
defer hc.Done()

defer func() {
hc.Done()
m.Wait()
}()
rd.main(ctx)
m.Wait()
})
}
}
Expand Down

0 comments on commit 382d9af

Please sign in to comment.