Skip to content

Commit

Permalink
Fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
santam85 committed May 29, 2024
1 parent 4620935 commit 3d4a0ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cocoapods-core/cdn_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def versions(name)
pod_path_actual = pod_path(name)
pod_path_relative = relative_pod_path(name)

return nil if @version_arrays_by_fragment_by_name[fragment][name].nil?
return nil if @version_arrays_by_fragment_by_name[fragment].nil? || @version_arrays_by_fragment_by_name[fragment][name].nil?

concurrent_requests_catching_errors do
loaders = []
Expand Down Expand Up @@ -294,7 +294,7 @@ def ensure_versions_file_loaded(fragment)
hash
end
else
debug "CDN: #{name} Relative path: #{partial_url} not available in this source set"
debug "CDN: #{name} Relative path: #{index_file_name} not available in this source set"
end
end

Expand Down
1 change: 1 addition & 0 deletions spec/cdn_source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ def typhoeus_non_http_response_future(code)
end

it 'matches case' do
@source.expects(:debug).with { |cmd| cmd =~ /CDN: #{@source.name} Relative path: all_pods_versions_9_5_b\.txt not available in this source set/ }
@source.expects(:debug).with { |cmd| cmd =~ /CDN: #{@source.name} Relative path downloaded: all_pods_versions_9_5_b\.txt, save ETag:/ }
@source.search('bEacoNKIT').should.be.nil?
end
Expand Down

0 comments on commit 3d4a0ad

Please sign in to comment.