зеркало из https://github.com/github/ruby.git
Wait until the callback is called with timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
41c199130a
Коммит
8c8796333a
|
@ -351,9 +351,12 @@ __EOS__
|
||||||
ssl.connect
|
ssl.connect
|
||||||
last_client_session = ssl.session
|
last_client_session = ssl.session
|
||||||
ssl.close
|
ssl.close
|
||||||
Thread.pass # try to ensure server calls callbacks
|
timeout(5) do
|
||||||
assert(called.delete(:new))
|
Thread.pass until called.key?(:new)
|
||||||
assert(called.delete(:remove))
|
assert(called.delete(:new))
|
||||||
|
Thread.pass until called.key?(:remove)
|
||||||
|
assert(called.delete(:remove))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
assert(called[:get1])
|
assert(called[:get1])
|
||||||
|
|
Загрузка…
Ссылка в новой задаче