summaryrefslogtreecommitdiff
path: root/spec/support/helpers/exclusive_lease_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/exclusive_lease_helpers.rb')
-rw-r--r--spec/support/helpers/exclusive_lease_helpers.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/helpers/exclusive_lease_helpers.rb b/spec/support/helpers/exclusive_lease_helpers.rb
index 77703e20602..95cfc56c273 100644
--- a/spec/support/helpers/exclusive_lease_helpers.rb
+++ b/spec/support/helpers/exclusive_lease_helpers.rb
@@ -9,7 +9,9 @@ module ExclusiveLeaseHelpers
Gitlab::ExclusiveLease,
try_obtain: uuid,
exists?: true,
- renew: renew
+ renew: renew,
+ cancel: nil,
+ ttl: timeout
)
allow(Gitlab::ExclusiveLease)