mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 08:37:40 +08:00
correct spec
This commit is contained in:
parent
85e9aaa4fa
commit
a2ee213100
@ -21,12 +21,13 @@ describe DistributedCache do
|
|||||||
|
|
||||||
add_throw_away_cache
|
add_throw_away_cache
|
||||||
GC.start
|
GC.start
|
||||||
|
|
||||||
cache1["foofoo"] = "bar1"
|
cache1["foofoo"] = "bar1"
|
||||||
wait_for do
|
wait_for do
|
||||||
cache2["foofoo"] == "bar1"
|
cache2["foofoo"] == "bar1"
|
||||||
end
|
end
|
||||||
|
|
||||||
DistributedCache.subscribers.length.should == start
|
DistributedCache.subscribers.length.should be <= start
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not leak state across caches' do
|
it 'does not leak state across caches' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user