diff options
Diffstat (limited to 'spec/models/ci/runner_spec.rb')
-rw-r--r-- | spec/models/ci/runner_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb index 56e69cc2b9c..a8e9d36a3a7 100644 --- a/spec/models/ci/runner_spec.rb +++ b/spec/models/ci/runner_spec.rb @@ -1216,13 +1216,12 @@ RSpec.describe Ci::Runner, type: :model, feature_category: :runner do before do runner.tick_runner_queue - runner.destroy! end it 'cleans up the queue' do - Gitlab::Redis::Cache.with do |redis| - expect(redis.get(queue_key)).to be_nil - end + expect(Gitlab::Workhorse).to receive(:cleanup_key).with(queue_key) + + runner.destroy! end end end |