openbsd-ports/databases/ruby-redis/patches/patch-test_publish_subscribe_test_rb
2015-02-13 15:24:59 +00:00

13 lines
812 B
Plaintext

$OpenBSD: patch-test_publish_subscribe_test_rb,v 1.4 2015/02/13 15:24:59 dcoppa Exp $
--- test/publish_subscribe_test.rb.orig Wed Feb 11 13:21:18 2015
+++ test/publish_subscribe_test.rb Fri Feb 13 08:25:04 2015
@@ -235,7 +235,7 @@ class TestPublishSubscribe < Test::Unit::TestCase
def test_subscribe_past_a_timeout
# For some reason, a thread here doesn't reproduce the issue.
sleep = %{sleep #{OPTIONS[:timeout] * 2}}
- 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'}
+ 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'}
cmd = [sleep, publish].join("; ")
IO.popen(cmd, "r+") do |pipe|