mperham / connection_pool

Generic connection pooling for Ruby
MIT License
1.63k stars 143 forks source link

Test ConnectionPool::TimedStack #48

Closed drbrain closed 10 years ago

drbrain commented 10 years ago

This adds test for TimedStack.

I want to use connection_pool in net-http-persistent. To support this I need to be able to create different types of connections (by URI) and track them (because that's what Net::HTTP's API requires).

This might involve changes to TimedStack, it was untested, so here you go.