Merge pull request #14100 from bboreham/windows-flake

[TEST] Rules: Sleep 15ms to fit Windows behaviour better
This commit is contained in:
Julien 2024-05-16 12:04:42 +02:00 committed by GitHub
commit d1eff95faf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2044,7 +2044,7 @@ func TestBoundedRuleEvalConcurrency(t *testing.T) {
require.EqualValues(t, maxInflight.Load(), int32(maxConcurrency)+int32(groupCount)) require.EqualValues(t, maxInflight.Load(), int32(maxConcurrency)+int32(groupCount))
} }
const artificialDelay = 10 * time.Millisecond const artificialDelay = 15 * time.Millisecond
func optsFactory(storage storage.Storage, maxInflight, inflightQueries *atomic.Int32, maxConcurrent int64) *ManagerOptions { func optsFactory(storage storage.Storage, maxInflight, inflightQueries *atomic.Int32, maxConcurrent int64) *ManagerOptions {
var inflightMu sync.Mutex var inflightMu sync.Mutex