summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.noed255191
-rw-r--r--test/integration/common.rb2
3 files changed, 3 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 2bfe7d2..267d8eb 100644
--- a/Gemfile
+++ b/Gemfile
@@ -8,4 +8,5 @@ gem 'byebug', group: %i[development test] if !Gem.win_platform? && RUBY_ENGINE =
if ENV["CI"]
gem 'codecov', require: false, group: :test
gem 'simplecov', require: false, group: :test
+ gem 'webrick' if RUBY_VERSION.split(".")[0].to_i >= 3
end
diff --git a/Gemfile.noed25519 b/Gemfile.noed25519
index b6c3576..4adaf04 100644
--- a/Gemfile.noed25519
+++ b/Gemfile.noed25519
@@ -7,4 +7,5 @@ gemspec
if ENV["CI"] && !Gem.win_platform?
gem 'simplecov', require: false, group: :test
gem 'codecov', require: false, group: :test
+ gem 'webrick' if RUBY_VERSION.split(".")[0].to_i >= 3
end
diff --git a/test/integration/common.rb b/test/integration/common.rb
index ada7cad..129e5a4 100644
--- a/test/integration/common.rb
+++ b/test/integration/common.rb
@@ -101,7 +101,7 @@ module IntegrationTestHelpers
end
end
- def port_open?(path)
+ def is_port_open?(path)
Socket.tcp("localhost", 10567, connect_timeout: 1) { true } rescue false # rubocop:disable Style/RescueModifier
end