From 030f7b7339460dcbc67b74a5f9e40cffdf9237f1 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Mon, 18 Aug 2025 05:07:57 -0400 Subject: [PATCH] hs-test: NginxHttp3Test add worker crash check Type: test Change-Id: Ic214c4af369c93e88b03405f1961dd24f15a873b Signed-off-by: Matus Fabian --- extras/hs-test/nginx_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extras/hs-test/nginx_test.go b/extras/hs-test/nginx_test.go index 6a219e9568c..ef810674a16 100644 --- a/extras/hs-test/nginx_test.go +++ b/extras/hs-test/nginx_test.go @@ -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, "", " 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) { -- 2.16.6