From ddea35e23596e32255222a001538571e335055af Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Aug 2013 08:22:20 +0000 Subject: tests: use unix_client in tests to kill some redundant code 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. --- test/test_sink_tee_integration.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/test_sink_tee_integration.rb') 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) -- cgit v1.2.3-24-ge0c7