Skip to content

Commit 6c39e92

Browse files
committed
fix: new unit test failure
The previous change to eager loading seems to have introduced an unintended change which is resolved by the following fix. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 681d98d commit 6c39e92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pact_broker/pacts/repository.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def find_latest_pacts_for_provider provider_name, tag = nil
149149
query = query.overall_latest
150150
end
151151

152-
query.all.sort_by{ | p| p.consumer_name.downcase }.collect(&:to_head_pact)
152+
query.all.sort.collect(&:to_head_pact)
153153
end
154154

155155
def find_pacts_by_consumer_branch(provider_name, options = {})
@@ -179,7 +179,7 @@ def find_pacts_by_consumer_branch(provider_name, options = {})
179179
query = query.for_branch_name(branch)
180180
end
181181
end
182-
query.all.sort_by{ | p| p.consumer_name.downcase }.collect(&:to_head_pact)
182+
query.all.sort.collect(&:to_head_pact)
183183
end
184184

185185
def find_for_verification(provider_name, consumer_version_selectors)

0 commit comments

Comments
 (0)