Fix randomly failing specs.
This commit is contained in:
parent
58de40154d
commit
685c26961f
|
@ -5,8 +5,8 @@ describe Jobs::AboutStats do
|
||||||
begin
|
begin
|
||||||
stats = About.fetch_stats.to_json
|
stats = About.fetch_stats.to_json
|
||||||
cache_key = About.stats_cache_key
|
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(described_class.new.execute({})).to eq(stats)
|
||||||
expect($redis.get(cache_key)).to eq(stats)
|
expect($redis.get(cache_key)).to eq(stats)
|
||||||
ensure
|
ensure
|
||||||
|
|
Loading…
Reference in New Issue