Skip to content

Commit 35a3834

Browse files
committed
Merge remote-tracking branch 'origin/master' into sentinel
2 parents 01e9745 + e6e62f3 commit 35a3834

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/internals_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def af_family_supported(af)
379379
begin
380380
sa = Socket.pack_sockaddr_in(1024 + Random.rand(63076), hosts[af])
381381
s.bind(sa)
382-
rescue Errno::EADDRINUSE => e
382+
rescue Errno::EADDRINUSE
383383
tries -= 1
384384
retry if tries > 0
385385

test/publish_subscribe_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def test_unsubscribe_without_a_subscribe
191191
def test_subscribe_past_a_timeout
192192
# For some reason, a thread here doesn't reproduce the issue.
193193
sleep = %{sleep #{OPTIONS[:timeout] * 2}}
194-
publish = %{echo "publish foo bar\r\n" | nc 127.0.0.1 #{OPTIONS[:port]}}
194+
publish = %{ruby -rsocket -e 't=TCPSocket.new("127.0.0.1",#{OPTIONS[:port]});t.write("publish foo bar\\r\\n");t.read(4);t.close'}
195195
cmd = [sleep, publish].join("; ")
196196

197197
IO.popen(cmd, "r+") do |pipe|

0 commit comments

Comments
 (0)