spec/connection_pool_spec.rb in em-synchrony-1.0.0 vs spec/connection_pool_spec.rb in em-synchrony-1.0.1

- old
+ new

@@ -7,11 +7,11 @@ it "should queue requests if pool size is exceeded" do EventMachine.run do db = EventMachine::Synchrony::ConnectionPool.new(size: 1) do - EventMachine::MySQL.new(host: "localhost") + Mysql2::EM::Client.new end Fiber.new { start = now @@ -31,11 +31,11 @@ it "should execute multiple async pool requests within same fiber" do EventMachine.run do db = EventMachine::Synchrony::ConnectionPool.new(size: 2) do - EventMachine::MySQL.new(host: "localhost") + Mysql2::EM::Client.new end Fiber.new { start = now @@ -55,11 +55,11 @@ it "should share connection pool between different fibers" do EventMachine.run do db = EventMachine::Synchrony::ConnectionPool.new(size: 2) do - EventMachine::MySQL.new(host: "localhost") + Mysql2::EM::Client.new end Fiber.new { start = now results = [] @@ -86,10 +86,10 @@ it "should share connection pool between different fibers & async requests" do EventMachine.run do db = EventMachine::Synchrony::ConnectionPool.new(size: 5) do - EventMachine::MySQL.new(host: "localhost") + Mysql2::EM::Client.new end Fiber.new { start = now results = [] \ No newline at end of file