Skip to content

Commit

Permalink
[CI] Handles mutex_m issue with Ruby 3.4 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Dec 27, 2024
1 parent 7ae8e7d commit cf1db80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ gemspec

group :development, :test do
gem 'faraday-httpclient'
gem 'mutex_m' if RUBY_VERSION >= '3.4'
gem 'faraday-net_http_persistent'
gem 'faraday-typhoeus'
gem 'faraday-excon'
Expand Down
1 change: 1 addition & 0 deletions spec/elastic/transport/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,7 @@

context 'when using the HTTPClient adapter' do
require 'faraday/httpclient'
require 'mutex_m' if RUBY_VERSION >= '3.4'

let(:client) do
described_class.new(hosts: ELASTICSEARCH_HOSTS, compression: true, adapter: :httpclient, enable_meta_header: false)
Expand Down

0 comments on commit cf1db80

Please sign in to comment.