Skip to content

Commit

Permalink
Merge branch 'main' into switch-resume
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaen committed Aug 17, 2024
2 parents 26d9bd4 + 1e41085 commit 4422bf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions klog/app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package app

import (
"errors"
"sort"
"strings"

"github.com/jotaen/genie"
Expand Down Expand Up @@ -349,6 +350,7 @@ var CONFIG_FILE_ENTRIES = []ConfigFileEntries[any]{
keys = append(keys, k)
}
}
sort.Strings(keys)
result = strings.Join(keys, ", ")
})
return result, c.NoWarnings.origin
Expand Down
4 changes: 2 additions & 2 deletions klog/app/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func TestNoWarningsParamFromConfigFile(t *testing.T) {
dc["MORE_THAN_24H"] = true
return dc
}()},
// Multiple values
// Multiple values (sorted alphabetically)
{`no_warnings = MORE_THAN_24H, OVERLAPPING_RANGES`, func() service.DisabledCheckers {
dc := service.NewDisabledCheckers()
dc["MORE_THAN_24H"] = true
Expand Down Expand Up @@ -266,7 +266,7 @@ default_rounding = 15m
default_should_total = 8h!
date_format = YYYY-MM-DD
time_convention = 24h
no_warnings = OVERLAPPING_RANGES, MORE_THAN_24H
no_warnings = MORE_THAN_24H, OVERLAPPING_RANGES
`} {
cfg, _ := NewConfig(
FromDeterminedValues{NumCpus: 1},
Expand Down

0 comments on commit 4422bf9

Please sign in to comment.