]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: update TestExitHooks error strings
authorCherry Mui <cherryyz@google.com>
Thu, 23 May 2024 03:09:56 +0000 (23:09 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 23 May 2024 13:59:13 +0000 (13:59 +0000)
The error strings were changed in CL 586259 and no longer include
"internal error". Update the strings in the test.

Should fix the longtest builders.

Change-Id: If227d4b79a8bf5e52a32c3b2eceb086241f079aa
Reviewed-on: https://go-review.googlesource.com/c/go/+/587757
Auto-Submit: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/runtime/ehooks_test.go

index ee286ecb9a76adcef6a6340adf8a0e19cec3a3fc..2265256a0b4b6d371d5c028b3fbb04812458e8eb 100644 (file)
@@ -48,12 +48,12 @@ func TestExitHooks(t *testing.T) {
                        {
                                mode:     "panics",
                                expected: "",
-                               musthave: "fatal error: internal error: exit hook invoked panic",
+                               musthave: "fatal error: exit hook invoked panic",
                        },
                        {
                                mode:     "callsexit",
                                expected: "",
-                               musthave: "fatal error: internal error: exit hook invoked exit",
+                               musthave: "fatal error: exit hook invoked exit",
                        },
                }