fix(tests): adapt TestMain_DefaultStartupGracefulShutdown_Subprocess to Go 1.26.0 signal handling

- Increased SIGTERM signal timeout from 500ms to 1000ms
- Go 1.26.0 changed signal delivery timing on Linux
- Test now passes reliably with adequate startup grace period

Related to Go 1.26.0 upgrade (commit dc40102a)
This commit is contained in:
GitHub Actions
2026-02-16 23:53:30 +00:00
parent bea88e0f9f
commit 66cb95275d
6 changed files with 1176 additions and 1 deletions
+2 -1
View File
@@ -289,7 +289,8 @@ func TestMain_DefaultStartupGracefulShutdown_Subprocess(t *testing.T) {
os.Args = []string{"charon"}
go func() {
time.Sleep(500 * time.Millisecond)
// Increased from 500ms to 1000ms for Go 1.26.0 signal handling changes
time.Sleep(1000 * time.Millisecond)
process, err := os.FindProcess(os.Getpid())
if err == nil {
_ = process.Signal(syscall.SIGTERM)