Skip to content

Commit 080fd89

Browse files
committed
Fix flaky test in manifest_route_update_spec
Use route_mappings_dataset to defer query and avoid race condition.
1 parent 30045f0 commit 080fd89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/actions/manifest_route_update_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module VCAP::CloudController
6666
it 'updates (or recreates) the route mapping with the new protocol' do
6767
ManifestRouteUpdate.update(app.guid, message, user_audit_info)
6868

69-
route_mappings = app.reload.route_mappings
69+
route_mappings = app.reload.route_mappings_dataset
7070

7171
expect(route_mappings.count).to eq(2)
7272
mapped_route = route_mappings.find { |rm| rm.route == route }

0 commit comments

Comments
 (0)