fix: add very small delay between observations to make test more realistic (and faster) (#1691)
This commit is contained in:
parent
6a9004890f
commit
76b74e25d5
|
@ -382,6 +382,7 @@ func TestHistogramAtomicObserve(t *testing.T) {
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
his.Observe(1)
|
his.Observe(1)
|
||||||
|
time.Sleep(time.Nanosecond)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue