Skip to content

Commit

Permalink
Test removal of doubled service child retirement call
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Aug 28, 2018
1 parent 9b796a5 commit b4b6ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/service_retire_task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
service.service_resources << FactoryGirl.create(:service_resource, :resource_type => "Service", :service_id => service_c1.id, :resource_id => service_c1.id)

@service_retire_task.after_request_task_create
expect(VmRetireTask.count).to eq(4)
expect(VmRetireTask.count).to eq(2)
expect(VmRetireTask.all.pluck(:message)).to eq(["Automation Starting", "Automation Starting", "Automation Starting", "Automation Starting"])
expect(ServiceRetireTask.count).to eq(1)
expect(ServiceRetireRequest.count).to eq(1)
Expand Down

0 comments on commit b4b6ce4

Please sign in to comment.