mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
Fix randomly failing specs.
This commit is contained in:
parent
58de40154d
commit
685c26961f
@ -5,8 +5,8 @@ describe Jobs::AboutStats do
|
||||
begin
|
||||
stats = About.fetch_stats.to_json
|
||||
cache_key = About.stats_cache_key
|
||||
$redis.del(cache_key)
|
||||
|
||||
expect($redis.get(cache_key)).to eq(nil)
|
||||
expect(described_class.new.execute({})).to eq(stats)
|
||||
expect($redis.get(cache_key)).to eq(stats)
|
||||
ensure
|
||||
|
Loading…
Reference in New Issue
Block a user