sunaku/testr — Issue #14: The first test always fails with a MySQL connection error
Author: derekcroft
Created: 2011-11-04 19:40:27+00:00
State: open

The first test that runs tries to use an old MySQL connection and fails, then subsequent tests pass. This happens in every file, every time.

Loaded suite testr-worker[6] test/unit/subscription_test
Started
E........

1) Error:
test: A simple test should pass. (SubscriptionTest):
ActiveRecord::StatementInvalid: Mysql2::Error: MySQL server has gone away: SAVEPOINT active_record_2
config/initializers/mysql2_reconnect.rb:22:in `execute'
test/unit/subscription_test.rb:81:in `block (2 levels) in '