We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 116414e commit db65bf2Copy full SHA for db65bf2
router/pkg/controlplane/poll_test.go
@@ -68,9 +68,11 @@ func Test_Poller(t *testing.T) {
68
i, actualInterval, expectedMinInterval)
69
70
// Each interval should be at most interval + maxJitter
71
- assert.LessOrEqual(t, actualInterval, expectedMaxInterval,
+ // a small delay to account for system scheduling delays
72
+ expectedInterval := expectedMaxInterval + 10*time.Millisecond
73
+ assert.LessOrEqual(t, actualInterval, expectedInterval,
74
"execution %d: actual interval %v should be <= maximum interval %v",
- i, actualInterval, expectedMaxInterval)
75
+ i, actualInterval, expectedInterval)
76
77
t.Logf("execution %d: interval = %v (expected: %v to %v)",
78
i, actualInterval, expectedMinInterval, expectedMaxInterval)
0 commit comments