mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-20 17:58:04 +02:00
rpc/dataconn/timeoutconn: tests: relax deadline in timeout tests
This commit is contained in:
parent
d89afe58d4
commit
b4abebce00
@ -117,7 +117,7 @@ func TestNoPartialReadsDueToDeadline(t *testing.T) {
|
|||||||
// 50ms for the second read, 100ms after that one for the deadline
|
// 50ms for the second read, 100ms after that one for the deadline
|
||||||
// allow for some jitter
|
// allow for some jitter
|
||||||
assert.True(t, readDuration > 140*time.Millisecond)
|
assert.True(t, readDuration > 140*time.Millisecond)
|
||||||
assert.True(t, readDuration < 160*time.Millisecond)
|
assert.True(t, readDuration < 200*time.Millisecond)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user