summaryrefslogtreecommitdiff
path: root/spec/bundler/fetcher/compact_index_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/fetcher/compact_index_spec.rb')
-rw-r--r--spec/bundler/fetcher/compact_index_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/bundler/fetcher/compact_index_spec.rb b/spec/bundler/fetcher/compact_index_spec.rb
index c9419d3eb1..b00eadceab 100644
--- a/spec/bundler/fetcher/compact_index_spec.rb
+++ b/spec/bundler/fetcher/compact_index_spec.rb
@@ -1,5 +1,8 @@
# frozen_string_literal: true
+# load CompactIndexClient upfront to prevent thread safety issues during parallel specs
+require "bundler/compact_index_client"
+
RSpec.describe Bundler::Fetcher::CompactIndex do
let(:downloader) { double(:downloader) }
let(:display_uri) { Bundler::URI("http://sampleuri.com") }