Browse Source

Merge pull request #14100 from bboreham/windows-flake

[TEST] Rules: Sleep 15ms to fit Windows behaviour better
pull/14116/head
Julien 6 months ago committed by GitHub
parent
commit
d1eff95faf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      rules/manager_test.go

2
rules/manager_test.go

@ -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

Loading…
Cancel
Save