about summary refs log tree commit homepage
path: root/test/test_unix_socket.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-29 08:18:55 +0000
committerEric Wong <e@80x24.org>2016-02-29 08:22:02 +0000
commit7ee064f52ee740eeafa49089911f6eca18c67e38 (patch)
tree6bf2588b7d3b992d38b7056d8a230367cde479eb /test/test_unix_socket.rb
parent5fff94f35928feeb9d6bf91087ee7cdbe97ecdb7 (diff)
downloadyahns-7ee064f52ee740eeafa49089911f6eca18c67e38.tar.gz
We should not infinite loop, oops :x
Also, ensure 'yahns' is in the directory in case tests are
SIGKILL-ed and directories are left over.
Diffstat (limited to 'test/test_unix_socket.rb')
-rw-r--r--test/test_unix_socket.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_unix_socket.rb b/test/test_unix_socket.rb
index 3911619..7b821e3 100644
--- a/test/test_unix_socket.rb
+++ b/test/test_unix_socket.rb
@@ -23,7 +23,7 @@ class TestUnixSocket < Testcase
   end
 
   def test_socket
-    tmpdir = Dir.mktmpdir
+    tmpdir = yahns_mktmpdir
     err, cfg = @err, Yahns::Config.new
     sock = "#{tmpdir}/sock"
     cfg.instance_eval do
@@ -48,7 +48,7 @@ class TestUnixSocket < Testcase
   end
 
   def test_socket_perms
-    tmpdir = Dir.mktmpdir
+    tmpdir = yahns_mktmpdir
     err, cfg = @err, Yahns::Config.new
     sock = "#{tmpdir}/sock"
     cfg.instance_eval do