Skip to content

Commit 7e067fb

Browse files
committed
Fix test dependencies.
1 parent ca0e238 commit 7e067fb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y=
22
github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
3+
github.com/semog/go-common v1.0.2 h1:DEBcE4agkAI24gvu/TZ9qZVG6d4kYLY70TESKpbQHyY=
34
github.com/semog/go-common v1.0.2/go.mod h1:e9izIWrewAAVRmMulhISofl8VKlqy8UrmhLeQrbEkns=

sqldb_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ import (
55
"os"
66
"testing"
77

8-
"github.com/semog/go-common"
8+
gocommon "github.com/semog/go-common"
99
)
1010

1111
// In testspace, no one can hear you fail.
1212
const testFolderName = ".testspace"
1313
const testDbName = "TestDb"
1414

15-
func setupTests(t *testing.T) {
16-
removeTempFiles(t)
15+
func setupTests(_ *testing.T) {
16+
removeTempFiles()
1717
}
1818

19-
func cleanupTests(t *testing.T) {
20-
removeTempFiles(t)
19+
func cleanupTests(_ *testing.T) {
20+
removeTempFiles()
2121
}
2222

23-
func removeTempFiles(t *testing.T) {
23+
func removeTempFiles() {
2424
if gocommon.FileExists(testDbName) {
2525
os.Remove(testDbName)
2626
}

0 commit comments

Comments
 (0)