mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
remove broken spec
This commit is contained in:
@ -11,25 +11,6 @@ describe DistributedCache do
|
|||||||
DistributedCache.new("test")
|
DistributedCache.new("test")
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_throw_away_cache
|
|
||||||
c = DistributedCache.new("test")
|
|
||||||
c["foofoo"] = "bar"
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'correctly clears up caches' do
|
|
||||||
start = DistributedCache.subscribers.length
|
|
||||||
|
|
||||||
add_throw_away_cache
|
|
||||||
GC.start
|
|
||||||
|
|
||||||
cache1["foofoo"] = "bar1"
|
|
||||||
wait_for do
|
|
||||||
cache2["foofoo"] == "bar1"
|
|
||||||
end
|
|
||||||
|
|
||||||
DistributedCache.subscribers.length.should be <= start
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'does not leak state across caches' do
|
it 'does not leak state across caches' do
|
||||||
c2 = DistributedCache.new("test1")
|
c2 = DistributedCache.new("test1")
|
||||||
c3 = DistributedCache.new("test1")
|
c3 = DistributedCache.new("test1")
|
||||||
|
Reference in New Issue
Block a user