Delete always content from table master_slave_table between tests. #203

Merged
merged 1 commit into from Oct 5, 2012

Projects

None yet

3 participants

@kimhemsoe
Doctrine member

Fixes that we are currently failing master slave tests.

@stof stof commented on the diff Sep 23, 2012
...e/Tests/DBAL/Functional/MasterSlaveConnectionTest.php
} catch(\Exception $e) {
}
+
+ $this->_conn->executeUpdate('DELETE FROM master_slave_table');
+ $this->_conn->insert('master_slave_table', array('test_int' => 1));
@stof
stof Sep 23, 2012

you should keep it in the try/catch block

@kimhemsoe
kimhemsoe Sep 23, 2012

How will we then ever execute the line there delete rows from previous tests ?

@beberlei beberlei merged commit 43bfbf9 into doctrine:master Oct 5, 2012
@beberlei beberlei added a commit that referenced this pull request Oct 5, 2012
@beberlei beberlei Merge branch 'GH-203' into 2.3 e00ce93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment