Skip to content

Commit b50bc81

Browse files
committed
Rename transactional_queries_test.go to transaction_queries_test.go
1 parent 1dced3e commit b50bc81

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

test_util.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,10 @@ func checkDatabaseEmpty() {
291291
func 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
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
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

0 commit comments

Comments
 (0)