about summary refs log tree commit homepage
path: root/test/test_unix_connect.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_unix_connect.rb')
-rw-r--r--test/test_unix_connect.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_unix_connect.rb b/test/test_unix_connect.rb
index 60cb8c0..7b19941 100644
--- a/test/test_unix_connect.rb
+++ b/test/test_unix_connect.rb
@@ -18,8 +18,7 @@ class TestKgioUnixConnect < Test::Unit::TestCase
     @tmpdir = Dir.mktmpdir('kgio_unix_1')
     tmp = Tempfile.new('kgio_unix_1', @tmpdir)
     @path = tmp.path
-    File.unlink(@path)
-    tmp.close rescue nil
+    tmp.close!
     @srv = Kgio::UNIXServer.new(@path)
     @addr = Socket.pack_sockaddr_un(@path)
   end