diff --git a/pkg/restore/backoff_test.go b/pkg/restore/backoff_test.go index ff3d42715..6635749cd 100644 --- a/pkg/restore/backoff_test.go +++ b/pkg/restore/backoff_test.go @@ -32,7 +32,7 @@ func (s *testBackofferSuite) TearDownSuite(c *C) { func (s *testBackofferSuite) TestBackoffWithSuccess(c *C) { var counter int - backoffer := &newImportSSTBackoffer{attemp: 10, delayTime: time.Nanosecond, maxDelayTime: time.Nanosecond} + backoffer := &importerBackoffer{attempt: 10, delayTime: time.Nanosecond, maxDelayTime: time.Nanosecond} err := utils.WithRetry(context.Background(), func() error { defer func() { counter++ }() switch counter { @@ -51,7 +51,7 @@ func (s *testBackofferSuite) TestBackoffWithSuccess(c *C) { func (s *testBackofferSuite) TestBackoffWithFatalError(c *C) { var counter int - backoffer := &newImportSSTBackoffer{attemp: 10, delayTime: time.Nanosecond, maxDelayTime: time.Nanosecond} + backoffer := &importerBackoffer{attempt: 10, delayTime: time.Nanosecond, maxDelayTime: time.Nanosecond} err := utils.WithRetry(context.Background(), func() error { defer func() { counter++ }() switch counter { @@ -77,7 +77,7 @@ func (s *testBackofferSuite) TestBackoffWithFatalError(c *C) { func (s *testBackofferSuite) TestBackoffWithRetryableError(c *C) { var counter int - backoffer := &newImportSSTBackoffer{attemp: 10, delayTime: time.Nanosecond, maxDelayTime: time.Nanosecond} + backoffer := &importerBackoffer{attempt: 10, delayTime: time.Nanosecond, maxDelayTime: time.Nanosecond} err := utils.WithRetry(context.Background(), func() error { defer func() { counter++ }() return errEpochNotMatch