summary refs log tree commit homepage
diff options
context:
space:
mode:
authorFumiaki MATSUSHIMA <mtsm.fm@gmail.com>2018-02-24 16:06:36 +0900
committerEric Wong <e@80x24.org>2018-02-24 08:01:30 +0000
commit8cc911d4ff667c3f1af28db4c565cdbe22433e34 (patch)
tree2bf069fff6968778d50a33ae4f21ee9069cc19f5
parent1e486b788d2dbdf9e28e2d8516ec7b72e2b3190a (diff)
IO#wait_readable is introduced since 2.0

I confirmed we can pass tests for all versions of Ruby with this patch.

https://github.com/mtsmfm/unicorn/pull/2
-rw-r--r--test/unit/test_ccc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_ccc.rb b/test/unit/test_ccc.rb
index 0db0c38..3be1439 100644
--- a/test/unit/test_ccc.rb
+++ b/test/unit/test_ccc.rb
@@ -44,7 +44,7 @@ class TestCccTCPI < Test::Unit::TestCase
     # make sure the server is running, at least
     client = TCPSocket.new(host, port)
     client.write("GET / HTTP/1.1\r\nHost: example.com\r\n\r\n")
-    assert client.wait_readable(10), 'never got response from server'
+    assert client.wait(10), 'never got response from server'
     res = client.read
     assert_match %r{\AHTTP/1\.1 200}, res, 'got part of first response'
     assert_match %r{\r\n\r\n\z}, res, 'got end of response, server is ready'