summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2021-03-12 20:00:08 +0100
committerMiklós Fazekas <mfazekas@szemafor.com>2021-03-12 20:00:08 +0100
commit478058871c52e037aa07dc078cbf5bd29be2f381 (patch)
tree1b763ce4e559878c8ecdd5dfddeffcb7c796ec4d
parent1a18e975c43cb36da31431d498463899d91da656 (diff)
downloadnet-ssh-rc2.tar.gz
Fix rubucoprc2
-rw-r--r--test/integration/common.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/common.rb b/test/integration/common.rb
index add77ff..e9d2546 100644
--- a/test/integration/common.rb
+++ b/test/integration/common.rb
@@ -89,7 +89,7 @@ module IntegrationTestHelpers
f.write(lines)
pidpath = nil
if add_pid
- pidpath = f.path+'.pid'
+ pidpath = f.path + '.pid'
f.write("\nPIDFILE #{pidpath}")
end
# f.write("\nLogLevel DEBUG3")
@@ -98,8 +98,8 @@ module IntegrationTestHelpers
end
end
- def is_port_open?(path)
- Socket.tcp("localhost", 10567, connect_timeout: 1) { true } rescue false
+ def port_open?(path)
+ Socket.tcp("localhost", 10567, connect_timeout: 1) { true } rescue false # rubocop:disable Style/RescueModifier
end
# @yield [pid, port]