mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Use a much longer delay before giving up and failing the test. (#7646)
On circleci we've seen the test run very slowly so it's often failing here.
This commit is contained in:
@@ -225,9 +225,9 @@ func testDynamoDBLockTTL(t *testing.T, ha physical.HABackend) {
|
||||
lock2.ttl = lockTTL
|
||||
lock2.watchRetryInterval = watchInterval
|
||||
|
||||
// Cancel attempt in 6 sec so as not to block unit tests forever
|
||||
// Cancel attempt eventually so as not to block unit tests forever
|
||||
stopCh := make(chan struct{})
|
||||
time.AfterFunc(lockTTL*2, func() {
|
||||
time.AfterFunc(lockTTL*10, func() {
|
||||
close(stopCh)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user