mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-09 17:16:34 +02:00
Allow one millisecond less delay to account for time variance on CI runners.
This commit is contained in:
parent
5e55ce8ea9
commit
75abe6d653
|
@ -51,7 +51,8 @@ func TestDeferredExecutor_QueueSize(t *testing.T) {
|
|||
})
|
||||
b := time.Now()
|
||||
delta := b.Sub(a)
|
||||
if delta < delay {
|
||||
// Allow one millisecond less delay to account for time variance on CI runners.
|
||||
if delta+time.Millisecond < delay {
|
||||
t.Errorf("Expected a delay of %s, got %s", delay, delta)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue