Commit 8ee3d596 authored by Steven Allen's avatar Steven Allen

fix(test): flaky test

parent 0c5f74f5
...@@ -22,8 +22,8 @@ func TestBasic(t *testing.T) { ...@@ -22,8 +22,8 @@ func TestBasic(t *testing.T) {
<-ticker.C <-ticker.C
} }
actual := m.Snapshot() actual := m.Snapshot()
if !approxEq(actual.Rate, 25000, 500) { if !approxEq(actual.Rate, 25000, 1000) {
t.Errorf("expected rate 25000 (±500), got %f", actual.Rate) t.Errorf("expected rate 25000 (±1000), got %f", actual.Rate)
} }
for i := 0; i < 200; i++ { for i := 0; i < 200; i++ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment