patch-test_publish_subscribe_test_rb 812 B

12345678910111213
  1. $OpenBSD: patch-test_publish_subscribe_test_rb,v 1.4 2015/02/13 15:24:59 dcoppa Exp $
  2. --- test/publish_subscribe_test.rb.orig Wed Feb 11 13:21:18 2015
  3. +++ test/publish_subscribe_test.rb Fri Feb 13 08:25:04 2015
  4. @@ -235,7 +235,7 @@ class TestPublishSubscribe < Test::Unit::TestCase
  5. def test_subscribe_past_a_timeout
  6. # For some reason, a thread here doesn't reproduce the issue.
  7. sleep = %{sleep #{OPTIONS[:timeout] * 2}}
  8. - 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'}
  9. + publish = %{${LOCALBASE}/bin/ruby${GEM_BIN_SUFFIX} -rsocket -e 't=TCPSocket.new("127.0.0.1",#{OPTIONS[:port]});t.write("publish foo bar\\r\\n");t.read(4);t.close'}
  10. cmd = [sleep, publish].join("; ")
  11. IO.popen(cmd, "r+") do |pipe|