mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +08:00
0548a8a5d4
Default Redis maintenance notification negotiation to disabled and apply the startup-only setting to both platform and Asynq clients.
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")
|
|
}
|
|
}
|