Fix unit tests

This commit is contained in:
2025-10-17 07:06:31 +02:00
parent 91f4475d76
commit 6efd6334bb
5 changed files with 16 additions and 22 deletions

View File

@@ -79,15 +79,8 @@ func TestGetUIConfig(t *testing.T) {
t.Fatal("No config")
}
tmp, exists := cfg["metricConfig_jobListMetrics"]
if exists {
metrics := tmp.([]string)
str := metrics[2]
if str != "flops_any" {
t.Errorf("wrong config\ngot: %s \nwant: flops_any", str)
}
} else {
_, exists := cfg["metricConfig_jobListMetrics:fritz"]
if !exists {
t.Fatal("Key metricConfig_jobListMetrics is missing")
}
}