Commit 6bead543 authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

make websocket test more stable

parent ec7b6648
...@@ -194,7 +194,7 @@ class TestWebSocket < Test::Unit::TestCase ...@@ -194,7 +194,7 @@ class TestWebSocket < Test::Unit::TestCase
socket.print("#{request}\r\n") socket.print("#{request}\r\n")
headers, body = read_response(socket) headers, body = read_response(socket)
#wait for disconnect #wait for disconnect
sleep(1) sleep(1.5)
body, dummy = read_response(socket) body, dummy = read_response(socket)
assert_equal("\201\017FOOTER_TEMPLATE\210\000", body, "Wrong response") assert_equal("\201\017FOOTER_TEMPLATE\210\000", body, "Wrong response")
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment