Skip to content

Commit

Permalink
dispersion: fix max failure count in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
talal committed Sep 14, 2021
1 parent ca75891 commit 1910675
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/collector/dispersion/dispersion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestDispersionCollector(t *testing.T) {
}

registry := prometheus.NewPedanticRegistry()
c := collector.New(1)
c := collector.New(0)
exitCode := GetTaskExitCodeTypedDesc(registry)
c.AddTask(true, NewReportTask(pathToExecutable, 20*time.Second), exitCode)
registry.MustRegister(c)
Expand All @@ -52,7 +52,7 @@ func TestDispersionCollectorWithErrors(t *testing.T) {
}

registry := prometheus.NewPedanticRegistry()
c := collector.New(1)
c := collector.New(0)
exitCode := GetTaskExitCodeTypedDesc(registry)
c.AddTask(true, NewReportTask(pathToExecutable, 20*time.Second), exitCode)
registry.MustRegister(c)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ swift_dispersion_object_copies_missing 65
swift_dispersion_object_overlapping 0
# HELP swift_dispersion_task_exit_code The exit code for a Swift dispersion report query execution.
# TYPE swift_dispersion_task_exit_code gauge
swift_dispersion_task_exit_code{query="--dump-json"} 0
swift_dispersion_task_exit_code{query="--dump-json"} 1

0 comments on commit 1910675

Please sign in to comment.