]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls: improve error log produced during TestBogoSuite
authorClide Stefani <cstefani.sites@gmail.com>
Fri, 7 Jun 2024 20:37:13 +0000 (16:37 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 11 Jun 2024 17:25:39 +0000 (17:25 +0000)
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 <filippo@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/crypto/tls/bogo_shim_test.go

index 09b20a1c70370115dba1727e86d9c4b773a51c8d..5dc3b7c13ea79123982313dcd2039f126a445ef7 100644 (file)
@@ -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