diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-25 08:22:20 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-25 08:22:47 +0000 |
commit | ddea35e23596e32255222a001538571e335055af (patch) | |
tree | 862a3741af200836f9c2270aaa996b2f648ee443 /test/test_sink_tee_integration.rb | |
parent | 51212f0405057c03b032814677055b8ed2c4a494 (diff) | |
download | dtas-ddea35e23596e32255222a001538571e335055af.tar.gz |
This should make porting to different Unix socket types easier, too. Much of these tests were written before I decided to implement unix_client originally.
Diffstat (limited to 'test/test_sink_tee_integration.rb')
-rw-r--r-- | test/test_sink_tee_integration.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_sink_tee_integration.rb b/test/test_sink_tee_integration.rb index 8c20adb..082c1d5 100644 --- a/test/test_sink_tee_integration.rb +++ b/test/test_sink_tee_integration.rb @@ -15,11 +15,9 @@ class TestSinkTeeIntegration < Minitest::Unit::TestCase cmd = "echo $$ > #{tee_pid.path}; " \ "cat /dev/fd/a > #{ajunk.path} & " \ "cat /dev/fd/b > #{bjunk.path}; wait" - s.send("sink ed split active=true command='#{cmd}'", Socket::MSG_EOR) - assert_equal("OK", s.readpartial(666)) + s.req_ok("sink ed split active=true command='#{cmd}'") pluck = "sox -n $SOXFMT - synth 3 pluck | tee #{orig.path}" - s.send("enq-cmd \"#{pluck}\"", Socket::MSG_EOR) - assert_equal "OK", s.readpartial(666) + s.req_ok("enq-cmd \"#{pluck}\"") wait_files_not_empty(tee_pid) pid = read_pid_file(tee_pid) |