From 4b8f80707f315a8f7611da4f977892bbb8d49582 Mon Sep 17 00:00:00 2001 From: Clide Stefani Date: Fri, 7 Jun 2024 16:37:13 -0400 Subject: [PATCH] crypto/tls: improve error log produced during TestBogoSuite The existing implementation logs some errors to the results file created in TestBogoSuite. This change would additionally log json errors to the results file. Change-Id: Ib1a6f612ed83f6c5046531ee259c4e85dd71402a Reviewed-on: https://go-review.googlesource.com/c/go/+/591379 Reviewed-by: Filippo Valsorda Auto-Submit: Filippo Valsorda Reviewed-by: Roland Shoemaker Reviewed-by: Michael Pratt LUCI-TryBot-Result: Go LUCI --- src/crypto/tls/bogo_shim_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/tls/bogo_shim_test.go b/src/crypto/tls/bogo_shim_test.go index 09b20a1c70..5dc3b7c13e 100644 --- a/src/crypto/tls/bogo_shim_test.go +++ b/src/crypto/tls/bogo_shim_test.go @@ -368,7 +368,7 @@ func TestBogoSuite(t *testing.T) { if err != nil { t.Fatalf("bogo failed: %s\n%s", err, out) } - t.Fatalf("failed to read results JSON file: %s", err) + t.Fatalf("failed to read results JSON file: %s", jsonErr) } var results bogoResults -- 2.48.1