osquery / osquery-go

Go bindings for osquery
MIT License
386 stars 78 forks source link

Fix timing tests by using ranges #111

Closed directionless closed 1 year ago

directionless commented 1 year ago

I've noticed several failures on these tests. Generally, I think it's because GitHub Actions is on shared CPUs and prone to randomly pausing. This, in turn, makes the timing tests very squirrely

This is an attempt at converting from expected counts, to range checks I don't love it, and it's not going to catch all failures, but I'm not sure there's a better approach