diff --git a/spec/models/service_retire_task_spec.rb b/spec/models/service_retire_task_spec.rb index be98a73a28ef..2aecde95c206 100644 --- a/spec/models/service_retire_task_spec.rb +++ b/spec/models/service_retire_task_spec.rb @@ -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)