DEV: Fake sleeping in distributed mutex tests (#19472)

otherwise they take a looong time
This commit is contained in:
Daniel Waterworth
2022-12-14 15:11:46 -06:00
committed by GitHub
parent b1b8a7ebfe
commit 2b4009c6bc

View File

@ -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