aboutsummaryrefslogtreecommitdiffstats
path: root/test/io/nonblock
diff options
context:
space:
mode:
Diffstat (limited to 'test/io/nonblock')
-rw-r--r--test/io/nonblock/test_flush.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/io/nonblock/test_flush.rb b/test/io/nonblock/test_flush.rb
index ab54205174..70e65cceed 100644
--- a/test/io/nonblock/test_flush.rb
+++ b/test/io/nonblock/test_flush.rb
@@ -28,7 +28,7 @@ class TestIONonblock < Test::Unit::TestCase
w.flush
w << "a" * 4096
result = ""
- timeout(10) {
+ Timeout.timeout(10) {
t0 = Thread.new {
Thread.pass
w.close