diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-08 12:12:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-08 12:12:15 +0300 |
commit | 5bd8b9d24f16a0b9773c55cd0680ed98d345b07c (patch) | |
tree | 14f131de11550de67ef8a38c369b4362245272b2 /spec/workers | |
parent | 5bc16a3b1a97fc22d34be1b23cb2fc9050a9bd06 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/ci/runners/reconcile_existing_runner_versions_cron_worker_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/workers/ci/runners/reconcile_existing_runner_versions_cron_worker_spec.rb b/spec/workers/ci/runners/reconcile_existing_runner_versions_cron_worker_spec.rb index ab310bffe37..1292df62ce5 100644 --- a/spec/workers/ci/runners/reconcile_existing_runner_versions_cron_worker_spec.rb +++ b/spec/workers/ci/runners/reconcile_existing_runner_versions_cron_worker_spec.rb @@ -21,7 +21,7 @@ RSpec.describe Ci::Runners::ReconcileExistingRunnerVersionsCronWorker do it 'executes the service' do expect_next_instance_of(Ci::Runners::ReconcileExistingRunnerVersionsService) do |service| - expect(service).to receive(:execute).and_return({}) + expect(service).to receive(:execute).and_return(ServiceResponse.success) end.exactly(worker_exec_times) perform @@ -30,7 +30,8 @@ RSpec.describe Ci::Runners::ReconcileExistingRunnerVersionsCronWorker do it 'logs the service result' do expect_next_instance_of(Ci::Runners::ReconcileExistingRunnerVersionsService) do |service| - expect(service).to receive(:execute).and_return({ some_job_result_key: 'some_value' }) + expect(service).to receive(:execute) + .and_return(ServiceResponse.success(payload: { some_job_result_key: 'some_value' })) end worker.perform(false) |