aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/rsa/rsa_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/rsa/rsa_test.go')
-rw-r--r--src/crypto/rsa/rsa_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crypto/rsa/rsa_test.go b/src/crypto/rsa/rsa_test.go
index 5ae4c1dd20..124fba1e8a 100644
--- a/src/crypto/rsa/rsa_test.go
+++ b/src/crypto/rsa/rsa_test.go
@@ -145,6 +145,12 @@ d8Y7
}
func testKeyBasics(t *testing.T, priv *PrivateKey) {
+ defer func() {
+ if t.Failed() {
+ t.Logf("failed key: %#v", priv)
+ }
+ }()
+
if err := priv.Validate(); err != nil {
t.Errorf("Validate() failed: %s", err)
}