fix: keep schedulers alive without metrics

This commit is contained in:
2026-09-20 17:31:38 +08:00
parent 69a6b79fb0
commit 8d5274f652
2 changed files with 16 additions and 3 deletions

View File

@@ -135,6 +135,13 @@ func TestIntegrationMetricsProcess(t *testing.T) {
} else if metrics != "" {
t.Fatal("disabled metrics listener was started")
}
if !enabled {
select {
case <-done:
t.Fatal("server exited after metrics was disabled")
case <-time.After(2200 * time.Millisecond):
}
}
if err := cmd.Process.Signal(syscall.SIGTERM); err != nil {
t.Fatal(err)
}