Skip to content

Commit

Permalink
fix: the variable has the same name as the package
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 10, 2022
1 parent a25d76e commit 18b218c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/aria2/aria2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
_ "github.com/alist-org/alist/v3/drivers"
conf2 "github.com/alist-org/alist/v3/internal/conf"
"github.com/alist-org/alist/v3/internal/db"
"github.com/alist-org/alist/v3/internal/model"
"github.com/alist-org/alist/v3/internal/operations"
"github.com/alist-org/alist/v3/pkg/task"
Expand All @@ -21,11 +22,11 @@ func init() {
panic(err)
}
conf2.Conf.TempDir = absPath
db, err := gorm.Open(sqlite.Open("file::memory:?cache=shared"), &gorm.Config{})
dB, err := gorm.Open(sqlite.Open("file::memory:?cache=shared"), &gorm.Config{})
if err != nil {
panic("failed to connect database")
}
db.Init(db)
db.Init(dB)
}

func TestConnect(t *testing.T) {
Expand Down

0 comments on commit 18b218c

Please sign in to comment.