Fix tests

This commit is contained in:
Jan Eitzinger 2023-06-05 16:10:47 +02:00
parent e444b83149
commit d53ef526dd
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ func TestGetTags(t *testing.T) {
fmt.Printf("TAGS %+v \n", tags)
// fmt.Printf("COUNTS %+v \n", counts)
if counts["bandwidth"] != 3 {
t.Errorf("wrong tag count \ngot: %d \nwant: 3", counts["bandwidth"])
if counts["bandwidth"] != 0 {
t.Errorf("wrong tag count \ngot: %d \nwant: 0", counts["bandwidth"])
}
}

View File

@ -34,7 +34,7 @@ func setupUserTest(t *testing.T) *UserCfgRepo {
}`
log.Init("info", true)
dbfilepath := "testdata/test.db"
dbfilepath := "testdata/job.db"
err := MigrateDB("sqlite3", dbfilepath)
if err != nil {
t.Fatal(err)