mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 22:26:38 +08:00
33a1c32cf8
Reorganize internal packages into platform/infra/shared layers and update imports, docs, and seed-count tests to match current system configs.
15 lines
297 B
Go
15 lines
297 B
Go
package config
|
|
|
|
import "testing"
|
|
|
|
func TestApplyEnvOverridesRedisMaintNotifications(t *testing.T) {
|
|
t.Setenv("REDIS_MAINT_NOTIFICATIONS", "true")
|
|
|
|
cfg := &configModel{}
|
|
applyEnvOverrides(cfg)
|
|
|
|
if !cfg.Redis.MaintNotifications {
|
|
t.Fatal("REDIS_MAINT_NOTIFICATIONS=true was not applied")
|
|
}
|
|
}
|