store: increase test timeouts for CI reliability
Bump timing thresholds in TestNodeLocking to avoid flaky failures on slow CI runners (e.g. Windows). Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
+2
-2
@@ -51,14 +51,14 @@ func TestNodeLocking(t *testing.T) {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-time.After(100 * time.Millisecond):
|
case <-time.After(200 * time.Millisecond):
|
||||||
case <-ready:
|
case <-ready:
|
||||||
require.Fail(t, "transaction should have waited")
|
require.Fail(t, "transaction should have waited")
|
||||||
}
|
}
|
||||||
|
|
||||||
release()
|
release()
|
||||||
select {
|
select {
|
||||||
case <-time.After(200 * time.Millisecond):
|
case <-time.After(5 * time.Second):
|
||||||
require.Fail(t, "transaction should have completed")
|
require.Fail(t, "transaction should have completed")
|
||||||
case <-ready:
|
case <-ready:
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user