Skip to content

Commit

Permalink
Merge pull request #1467 from openziti/fix.metric.test.on.window
Browse files Browse the repository at this point in the history
fixes '+Inf' being returned in metrics test if checked too quickly
  • Loading branch information
andrewpmartinez authored Oct 25, 2023
2 parents aeed4cf + 5ad6bfa commit 8ec26ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controller/events/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func Test_MetricsFormat(t *testing.T) {
go func() {
registry := metrics2.NewRegistry("test", nil)
meter := registry.Meter("foo.bar")
time.Sleep(10 * time.Millisecond)
meter.Mark(1)
dispatcher.AcceptMetricsMsg(registry.Poll())
}()
Expand Down

0 comments on commit 8ec26ef

Please sign in to comment.