Skip to content

Commit

Permalink
Avoid calling MiqQueue.messaging_client and stub it as missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Dec 12, 2024
1 parent 7b041e0 commit ee775d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/models/ems_event_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
:args => [event_hash],
}

expect(MiqQueue).to receive(:messaging_client).with('event_handler').and_return(nil)
expect(MiqQueue).to receive(:submit_job).with(expected_queue_payload)

described_class.add_queue('add', ems.id, event_hash)
Expand Down

0 comments on commit ee775d5

Please sign in to comment.