Skip to content

Commit 397f04f

Browse files
committed
fix: LastOperatrionFailed error changed with ApiError
1 parent fe56444 commit 397f04f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/unit/actions/service_route_binding_create_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ module V3
450450
let(:state) { 'failed' }
451451

452452
it 'does not notify diego or create an audit event' do
453-
expect { action.poll(binding) }.to raise_error(VCAP::CloudController::V3::LastOperationFailedState)
453+
expect { action.poll(binding) }.to raise_error(CloudController::Errors::ApiError)
454454

455455
expect(messenger).not_to have_received(:send_desire_request)
456456
expect(binding_event_repo).not_to have_received(:record_create)

spec/unit/actions/service_route_binding_delete_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ module V3
183183
let(:state) { 'failed' }
184184

185185
it 'does not notify diego or create an audit event' do
186-
expect { action.poll(binding) }.to raise_error(VCAP::CloudController::V3::LastOperationFailedState)
186+
expect { action.poll(binding) }.to raise_error(CloudController::Errors::ApiError)
187187

188188
expect(RouteBinding.first).to eq(binding)
189189
expect(messenger).not_to have_received(:send_desire_request)

0 commit comments

Comments
 (0)