diff options
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | Gemfile.noed25519 | 1 | ||||
-rw-r--r-- | test/integration/common.rb | 2 |
3 files changed, 3 insertions, 1 deletions
@@ -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 |