mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:01:18 +08:00
correct broken spec
This commit is contained in:
@ -3,18 +3,6 @@ require 'distributed_cache'
|
||||
|
||||
describe DistributedCache do
|
||||
|
||||
def wait_for(&blk)
|
||||
i = 0
|
||||
result = false
|
||||
while !result && i < 300
|
||||
result = blk.call
|
||||
i += 1
|
||||
sleep 0.001
|
||||
end
|
||||
|
||||
result.should == true
|
||||
end
|
||||
|
||||
let! :cache1 do
|
||||
DistributedCache.new("test")
|
||||
end
|
||||
|
Reference in New Issue
Block a user