Commit 35e04fa5 authored by Matija Čupić's avatar Matija Čupić

Expect instead of allow Redis get stub for online? spec

parent 38c24212
......@@ -148,7 +148,7 @@ describe Ci::Runner do
def stub_redis_runner_contacted_at(value)
Gitlab::Redis::SharedState.with do |redis|
cache_key = runner.send(:cache_attribute_key, :contacted_at)
allow(redis).to receive(:get).with(cache_key).and_return(value)
expect(redis).to receive(:get).with(cache_key).and_return(value).at_least(:once)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment