Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Mar 29, 2024
1 parent bb4b87a commit 9b21505
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
_ "github.com/mattn/go-sqlite3"
)

// helper function to initialize DB for tests
func initDB(dryRun bool, dburi string) *sql.DB {
// helper function to initialize DBS for tests
func initDBS(dryRun bool, dburi string) *sql.DB {
srvConfig.Init()
log.SetFlags(0)
log.SetFlags(log.LstdFlags | log.Lshortfile)
Expand Down Expand Up @@ -70,7 +70,7 @@ func initServer() {
if dburi == "" {
log.Fatal("DBS_DB_FILE not defined")
}
db = initDB(false, dburi)
db = initDBS(false, dburi)
}
if router == nil {
routes := []server.Route{
Expand Down

0 comments on commit 9b21505

Please sign in to comment.