mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 08:17:24 +08:00
DEV: Improve flaky time-sensitive specs (#9141)
This commit is contained in:
@ -99,7 +99,7 @@ describe DistributedMutex do
|
||||
}.to raise_error(Discourse::ReadOnly)
|
||||
|
||||
expect(done).to eq(false)
|
||||
expect(Time.now - start).to be < (1.second)
|
||||
expect(Time.now - start).to be <= 1.second
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user