Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't skip tests if we don't need to. | Rafael Mendonça França | 2013-11-08 | 1 | -14/+14 |
| | | | | | | | We can conditional define the tests depending on the adapter or connection. Lets keep the skip for fail tests that need to be fixed. | ||||
* | rescue from all exceptions in `ConnectionManagement#call` | Vipul A M | 2013-07-22 | 1 | -2/+2 |
| | | | | | | | | | Fixes #11497 As `ActiveRecord::ConnectionAdapters::ConnectionManagement` middleware does not rescue from Exception (but only from StandardError), the Connection Pool quickly runs out of connections when multiple erroneous Requests come in right after each other. Recueing from all exceptions and not just StandardError, fixes this behaviour. | ||||
* | database connections are automatically established after forking. | Aaron Patterson | 2012-02-16 | 1 | -0/+21 |
| | | | | Connection pools are 1:1 with pids. | ||||
* | use Rack::BodyProxy in activerecord middlewares | Sergey Nartimov | 2012-01-16 | 1 | -3/+5 |
| | |||||
* | Move connection resoluion logic to it's own testable class. | Aaron Patterson | 2011-11-28 | 1 | -34/+0 |
| | |||||
* | break establish_connection to smaller methods | Aaron Patterson | 2011-11-28 | 1 | -3/+3 |
| | |||||
* | adding more tests around database uri parsing | Aaron Patterson | 2011-07-21 | 1 | -0/+34 |
| | |||||
* | Fix inconsistencies by being polite to the wrapped body. Needed for ↵ | Steve Hodgkiss | 2011-06-18 | 1 | -0/+7 |
| | | | | Rack::Sendfile to function properly. See issue #1761. | ||||
* | please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT | Aaron Patterson | 2011-06-06 | 1 | -1/+1 |
| | |||||
* | Refactor Active Record test connection setup. Please see the ↵ | Jon Leighton | 2011-06-04 | 1 | -1/+1 |
| | | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases. | ||||
* | make sure that active connections are not cleared during test when an ↵ | Aaron Patterson | 2011-03-29 | 1 | -0/+8 |
| | | | | exception happens | ||||
* | clearing active connections in the ConnectionManagement middleware if an ↵ | Aaron Patterson | 2011-03-29 | 1 | -0/+7 |
| | | | | exception happens | ||||
* | proxy body responses so we close database connections after body is flushed | Aaron Patterson | 2011-03-29 | 1 | -2/+22 |
| | |||||
* | make sure we have an active database connection before running each ↵ | Aaron Patterson | 2011-03-28 | 1 | -4/+5 |
| | | | | connection management test | ||||
* | testing app delegation from the ConnectionManagement middleware | Aaron Patterson | 2011-03-28 | 1 | -3/+20 |
| | |||||
* | namespacing connection management tests. :heart: | Aaron Patterson | 2011-03-28 | 1 | -18/+22 |
| | |||||
* | fixing test file name | Aaron Patterson | 2010-07-16 | 1 | -0/+25 |