hs-test: NginxHttp3Test add worker crash check 84/43584/2
authorMatus Fabian <[email protected]>
Mon, 18 Aug 2025 09:07:57 +0000 (05:07 -0400)
committerFlorin Coras <[email protected]>
Mon, 18 Aug 2025 10:20:31 +0000 (10:20 +0000)
Type: test

Change-Id: Ic214c4af369c93e88b03405f1961dd24f15a873b
Signed-off-by: Matus Fabian <[email protected]>
extras/hs-test/nginx_test.go

index 6a219e9..ef81067 100644 (file)
@@ -6,6 +6,7 @@ import (
        "strings"
 
        . "fd.io/hs-test/infra"
+       "github.com/edwarnicke/exechelper"
        . "github.com/onsi/ginkgo/v2"
 )
 
@@ -38,6 +39,12 @@ func NginxHttp3Test(s *NoTopoSuite) {
        s.AssertNotContains(stats, "refused")
        s.AssertContains(stats, "100")
        s.AssertContains(body, "<http>", "<http> not found in the result!")
+
+       // check worker crash
+       logPath := s.Containers.NginxHttp3.GetHostWorkDir() + "/" + s.Containers.NginxHttp3.Name + "-error.log"
+       logContents, err := exechelper.Output("cat " + logPath)
+       s.AssertNil(err)
+       s.AssertNotContains(string(logContents), "signal 17 (SIGCHLD) received from")
 }
 
 func NginxAsServerTest(s *NoTopoSuite) {