diff options
Diffstat (limited to 'test/test_connect_fd_leak.rb')
-rw-r--r-- | test/test_connect_fd_leak.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/test_connect_fd_leak.rb b/test/test_connect_fd_leak.rb index f6a8543..1dfc4cd 100644 --- a/test/test_connect_fd_leak.rb +++ b/test/test_connect_fd_leak.rb @@ -9,11 +9,9 @@ class TestConnectFDLeak < Test::Unit::TestCase nr = 0 path = "/non/existent/path" assert(! File.exist?(path), "#{path} should not exist") - assert_nothing_raised do - begin - sock = Kgio::UNIXSocket.new(path) - rescue Errno::ENOENT - end while (nr += 1) < 10000 - end + begin + sock = Kgio::UNIXSocket.new(path) + rescue Errno::ENOENT + end while (nr += 1) < 10000 end end |