Skip to content

Commit

Permalink
fix TestBackoff
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryRomanov committed Jan 31, 2024
1 parent 0e86e09 commit 94fb9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipeline/backoff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestBackoff(t *testing.T) {

batcherBackoff := NewRetriableBatcher(
&BatcherOptions{
MetricCtl: metric.New("", prometheus.NewRegistry()),
MetricCtl: metric.NewCtl("", prometheus.NewRegistry()),
},
func(workerData *WorkerData, batch *Batch) error {
eventCount.Inc()
Expand All @@ -48,7 +48,7 @@ func TestBackoffWithError(t *testing.T) {

batcherBackoff := NewRetriableBatcher(
&BatcherOptions{
MetricCtl: metric.New("", prometheus.NewRegistry()),
MetricCtl: metric.NewCtl("", prometheus.NewRegistry()),
},
func(workerData *WorkerData, batch *Batch) error {
return errors.New("some error")
Expand Down

0 comments on commit 94fb9c3

Please sign in to comment.