fix: add very small delay between observations to make test more realistic (and faster) (#1691)

This commit is contained in:
Ivan Goncharov 2024-11-20 14:47:38 +01:00 committed by GitHub
parent 6a9004890f
commit 76b74e25d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -382,6 +382,7 @@ func TestHistogramAtomicObserve(t *testing.T) {
return
default:
his.Observe(1)
time.Sleep(time.Nanosecond)
}
}
}