Files
dockwatch/internal/config/config_test.go
T
jbergner 45ca18b74e
release-tag / release-image (push) Failing after 1m20s
init
2026-08-31 17:09:21 +02:00

19 lines
478 B
Go

package config
import "testing"
func TestStrictEnvironmentParsing(t *testing.T) {
t.Setenv("CHECK_CONCURRENCY", "not-a-number")
if _, err := Load(); err == nil {
t.Fatal("expected invalid CHECK_CONCURRENCY to fail instead of silently using a default")
}
}
func TestStrictBooleanParsing(t *testing.T) {
t.Setenv("CHECK_CONCURRENCY", "8")
t.Setenv("AUTH_DISABLED", "sometimes")
if _, err := Load(); err == nil {
t.Fatal("expected invalid AUTH_DISABLED to fail")
}
}