From dd89a13e22c36ef4b44da57ff0df4201554cd7f4 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Wed, 20 Nov 2019 08:56:07 +1100 Subject: [PATCH] DEV: disable flaky spec This is erratically failing in our production CI --- spec/components/distributed_mutex_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/components/distributed_mutex_spec.rb b/spec/components/distributed_mutex_spec.rb index e15b20f36cc..e3c492f63c3 100644 --- a/spec/components/distributed_mutex_spec.rb +++ b/spec/components/distributed_mutex_spec.rb @@ -42,7 +42,13 @@ describe DistributedMutex do expect(Time.now.to_i).to be <= start + 1 end - it 'allows the validity of the lock to be configured' do + # expected: 1574200319 + # got: 1574200320 + # + # (compared using ==) + # ./spec/components/distributed_mutex_spec.rb:60:in `block (3 levels) in
' + # ./lib/distributed_mutex.rb:33:in `block in synchronize' + xit 'allows the validity of the lock to be configured' do freeze_time mutex = DistributedMutex.new(key, validity: 2)