File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -291,11 +291,10 @@ func checkDatabaseEmpty() {
291291func testingTearDown () {
292292 // flush and close the database
293293 conn := testPool .NewConn ()
294- _ , err := conn .Do ( "flushdb" )
295- if err != nil {
294+ defer conn .Close ( )
295+ if _ , err := conn . Do ( "flushdb" ); err != nil {
296296 panic (err )
297297 }
298- conn .Close ()
299298}
300299
301300// expectSetContains sets an error via t.Errorf if member is not in the set
Original file line number Diff line number Diff line change 44 "testing"
55)
66
7- func TestTransactionalQueries (t * testing.T ) {
7+ func TestTransactionQueries (t * testing.T ) {
88 testingSetUp ()
99 defer testingTearDown ()
1010
@@ -45,7 +45,7 @@ func TestTransactionalQueries(t *testing.T) {
4545 }
4646}
4747
48- func TestTransactionalQueriesError (t * testing.T ) {
48+ func TestTransactionQueriesError (t * testing.T ) {
4949 testingSetUp ()
5050 defer testingTearDown ()
5151
You can’t perform that action at this time.
0 commit comments