rails/rails — comment on commit cceabe03a80c4a0121a2b1187b56a2d29586a43b
File:  line 0
By alexeymuranov:

With this commit, on my machine i start getting an error when running

```shell
$ bundle exec rake test_postgresql
```

in activerecord:

```shell
1) Error:
test_remove_connection_for_thread(ActiveRecord::ConnectionAdapters::ConnectionPoolTest):
NoMethodError: undefined method `close' for nil:NilClass
/Volumes/Data/Users/alexey/Development/rails/activerecord/test/cases/connection_pool_test.rb:84:in `ensure in test_remove_connection_for_thread'
/Volumes/Data/Users/alexey/Development/rails/activerecord/test/cases/connection_pool_test.rb:84:in `test_remove_connection_for_thread'
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_230_to_251.rb:28:in `run'
```

I do not get this error with

```
$ ARCONN=postgresql ruby -I test test/cases/connection_pool_test.rb
```

but on some later commits i do, but maybe it does not happen every time. On some of the later commits i get a message that "there are too many connections" for the same test file. Errors are in `test_remove_connection` and `test_remove_connection_for_thread`.

Maybe it is something about my local settings, but this is just to let you know.

Happy New Year! I am off.