Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Sep 12, 2024
1 parent 8950753 commit c3d683a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/domain/domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ func TestStatWorkRecoverFromPanic(t *testing.T) {
metrics.PanicCounter.Reset()
// Since the stats lease is 0 now, so create a new ticker will panic.
// Test that they can recover from panic correctly.
dom.updateStatsWorker(mock.NewContext(), nil)
dom.autoAnalyzeWorker(nil)
dom.updateStatsWorker(mock.NewContext())
dom.autoAnalyzeWorker()
counter := metrics.PanicCounter.WithLabelValues(metrics.LabelDomain)
pb := &dto.Metric{}
err = counter.Write(pb)
Expand Down

0 comments on commit c3d683a

Please sign in to comment.