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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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