From 54f00407239661e50e12db23f1d4354e33467b3d Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Fri, 25 Feb 2011 13:44:37 -0800 Subject: [PATCH] crypto/openpgp: fix test prints R=agl, agl1 CC=golang-dev https://golang.org/cl/4255041 --- src/pkg/crypto/openpgp/read_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pkg/crypto/openpgp/read_test.go b/src/pkg/crypto/openpgp/read_test.go index 7e73dec6e1..58199e1329 100644 --- a/src/pkg/crypto/openpgp/read_test.go +++ b/src/pkg/crypto/openpgp/read_test.go @@ -79,7 +79,7 @@ func checkSignedMessage(t *testing.T, signedHex, expected string) { t.Errorf("bad UnverifiedBody got:%s want:%s", string(contents), expected) } if md.SignatureError != nil || md.Signature == nil { - t.Error("failed to validate: %s", md.SignatureError) + t.Errorf("failed to validate: %s", md.SignatureError) } } @@ -133,7 +133,7 @@ func TestSignedEncryptedMessage(t *testing.T) { } if md.SignatureError != nil || md.Signature == nil { - t.Error("failed to validate: %s", md.SignatureError) + t.Errorf("failed to validate: %s", md.SignatureError) } } @@ -200,12 +200,12 @@ func testDetachedSignature(t *testing.T, kring KeyRing, signature io.Reader, sig return } if signer == nil { - t.Errorf("%s: signer is nil") + t.Errorf("%s: signer is nil", tag) return } expectedSignerKeyId := uint64(0xa34d7e18c20c31bb) if signer.PrimaryKey.KeyId != expectedSignerKeyId { - t.Errorf("%s: wrong signer got:%x want:%x", signer.PrimaryKey.KeyId, expectedSignerKeyId) + t.Errorf("%s: wrong signer got:%x want:%x", tag, signer.PrimaryKey.KeyId, expectedSignerKeyId) } }