aboutsummaryrefslogtreecommitdiff
path: root/internal/db/lfs_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/lfs_test.go')
-rw-r--r--internal/db/lfs_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/db/lfs_test.go b/internal/db/lfs_test.go
index 6eb14019..29c7d665 100644
--- a/internal/db/lfs_test.go
+++ b/internal/db/lfs_test.go
@@ -22,8 +22,9 @@ func Test_lfs(t *testing.T) {
t.Parallel()
+ tables := []interface{}{new(LFSObject)}
db := &lfs{
- DB: initTestDB(t, "lfs", new(LFSObject)),
+ DB: initTestDB(t, "lfs", tables...),
}
for _, tc := range []struct {
@@ -36,7 +37,7 @@ func Test_lfs(t *testing.T) {
} {
t.Run(tc.name, func(t *testing.T) {
t.Cleanup(func() {
- err := deleteTables(db.DB, new(LFSObject))
+ err := clearTables(db.DB, tables...)
if err != nil {
t.Fatal(err)
}