about summary refs log tree commit homepage
path: root/test/test_unix_connect.rb
diff options
context:
space:
mode:
authorHleb Valoshka <375GNU@Gmail.COM>2013-08-24 16:50:17 +0300
committerEric Wong <normalperson@yhbt.net>2013-09-02 21:16:28 +0000
commitfc88b648ca5c2ba6c845c357192d7e36f9dedc5c (patch)
treea827742348692a4b58a69bd1385ca6f663203009 /test/test_unix_connect.rb
parent30c12374f8d23f0e635946fc38546820216457bf (diff)
downloadkgio-fc88b648ca5c2ba6c845c357192d7e36f9dedc5c.tar.gz
Note: this is an incomplete fix and the race can still happen.
A proper fix would involve using a temporary directory for each
test and placing the Unix socket in there.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'test/test_unix_connect.rb')
-rw-r--r--test/test_unix_connect.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_unix_connect.rb b/test/test_unix_connect.rb
index b85f1f6..007f422 100644
--- a/test/test_unix_connect.rb
+++ b/test/test_unix_connect.rb
@@ -14,7 +14,7 @@ end
 class TestKgioUnixConnect < Test::Unit::TestCase
 
   def setup
-    tmp = Tempfile.new('kgio_unix')
+    tmp = Tempfile.new('kgio_unix_1')
     @path = tmp.path
     File.unlink(@path)
     tmp.close rescue nil