Update socket poller test for Ruby 2.4
@@ -23,6 +23,7 @@ module Selenium
module WebDriver
describe SocketPoller do
around do |example|
+ begin
server_thread = Thread.new do
server = TCPServer.open(9250)
Thread.current.thread_variable_set(:server, server)
@@ -33,6 +34,7 @@ module Selenium
ensure
server_thread.thread_variable_get(:server).close
end
+ end
def poller(port)
described_class.new('localhost', port, 5, 0.05)
