mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-24 12:29:05 +01:00
Fix tests
This commit is contained in:
parent
e444b83149
commit
d53ef526dd
@ -53,7 +53,7 @@ func TestGetTags(t *testing.T) {
|
|||||||
fmt.Printf("TAGS %+v \n", tags)
|
fmt.Printf("TAGS %+v \n", tags)
|
||||||
// fmt.Printf("COUNTS %+v \n", counts)
|
// fmt.Printf("COUNTS %+v \n", counts)
|
||||||
|
|
||||||
if counts["bandwidth"] != 3 {
|
if counts["bandwidth"] != 0 {
|
||||||
t.Errorf("wrong tag count \ngot: %d \nwant: 3", counts["bandwidth"])
|
t.Errorf("wrong tag count \ngot: %d \nwant: 0", counts["bandwidth"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ func setupUserTest(t *testing.T) *UserCfgRepo {
|
|||||||
}`
|
}`
|
||||||
|
|
||||||
log.Init("info", true)
|
log.Init("info", true)
|
||||||
dbfilepath := "testdata/test.db"
|
dbfilepath := "testdata/job.db"
|
||||||
err := MigrateDB("sqlite3", dbfilepath)
|
err := MigrateDB("sqlite3", dbfilepath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user