Skip to content

Commit

Permalink
Refactored float comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Vasilev committed Nov 22, 2023
1 parent d148d36 commit b590479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestUnregister(t *testing.T) {
}

actual = m.Snapshot()
if actual.Rate != 20 {
if !approxEq(actual.Rate, 20, 1) {
t.Errorf("expected rate 20, got %f", actual.Rate)
}

Expand Down

0 comments on commit b590479

Please sign in to comment.