fix(test): update test expectations

This commit is contained in:
yusing
2026-01-04 20:31:11 +08:00
parent 2835fd5fb0
commit f1d906ac11
5 changed files with 15 additions and 5 deletions

View File

@@ -788,6 +788,15 @@ func (r *Route) Finalize() {
}
r.Port.Listening, r.Port.Proxy = lp, pp
workingState := config.WorkingState.Load()
if workingState == nil {
if common.IsTest { // in tests, working state might be nil
return
}
panic("bug: working state is nil")
}
r.HealthCheck.ApplyDefaults(config.WorkingState.Load().Value().Defaults.HealthCheck)
}