Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit b912e5b

Browse files
committed
Fix flakey test in RevisionCreate
Authored-by: Matt Royal <mroyal@pivotal.io>
1 parent 65b6382 commit b912e5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/unit/actions/revision_create_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module VCAP::CloudController
110110
)
111111
}.to change { RevisionModel.where(app: app).count }.by(1)
112112

113-
expect(RevisionModel.map(&:version)).to eq([1, 2])
113+
expect(RevisionModel.order_by(:created_at).map(&:version)).to eq([1, 2])
114114
end
115115

116116
it 'rolls over to version 1 when we pass version 9999' do

0 commit comments

Comments
 (0)