DEV: Fake sleeping in distributed mutex tests (#19472)
otherwise they take a looong time
This commit is contained in:
parent
b1b8a7ebfe
commit
2b4009c6bc
|
@ -1,6 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe DistributedMutex do
|
||||
before do
|
||||
DistributedMutex.any_instance.stubs(:sleep)
|
||||
end
|
||||
|
||||
let(:key) { "test_mutex_key" }
|
||||
|
||||
after do
|
||||
|
|
Loading…
Reference in New Issue