From 8dac5af4c31581b800e3d0e9e0e453715c03d7fc Mon Sep 17 00:00:00 2001 From: kennytm Date: Thu, 28 May 2020 00:31:19 +0800 Subject: [PATCH] restore: fix build break --- pkg/restore/backoff_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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