Skip to content

Commit 0be697a

Browse files
authored
Fix flaky test (#4400)
1 parent f1466a2 commit 0be697a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/unit/actions/service_instance_unshare_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ module VCAP::CloudController
9191
expect { service_instance_unshare.unshare(service_instance, target_space, user_audit_info) }.
9292
to raise_error(VCAP::CloudController::ServiceInstanceUnshare::Error)
9393

94-
expect(VCAP::CloudController::PollableJobModel.count).to eq(3)
94+
binding_guids = [service_binding_1.guid, service_binding_2.guid, service_binding_3.guid]
95+
jobs = VCAP::CloudController::PollableJobModel.where(resource_guid: binding_guids)
96+
expect(jobs.count).to eq(3)
9597
end
9698
end
9799

0 commit comments

Comments
 (0)