about summary refs log tree commit homepage
path: root/test/test_autopush.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_autopush.rb')
-rw-r--r--test/test_autopush.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_autopush.rb b/test/test_autopush.rb
index 6c6e05f..38b7c52 100644
--- a/test/test_autopush.rb
+++ b/test/test_autopush.rb
@@ -44,8 +44,7 @@ class TestAutopush < Test::Unit::TestCase
     Kgio.autopush = true
     tmp = Tempfile.new('kgio_unix')
     @path = tmp.path
-    File.unlink(@path)
-    tmp.close rescue nil
+    tmp.close!
     @srv = Kgio::UNIXServer.new(@path)
     @rd = Kgio::UNIXSocket.new(@path)
     t0 = nil