summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/crypto/openpgp/write_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/crypto/openpgp/write_test.go')
-rw-r--r--vendor/golang.org/x/crypto/openpgp/write_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/golang.org/x/crypto/openpgp/write_test.go b/vendor/golang.org/x/crypto/openpgp/write_test.go
index 2161ebcd7..f2d50a0cf 100644
--- a/vendor/golang.org/x/crypto/openpgp/write_test.go
+++ b/vendor/golang.org/x/crypto/openpgp/write_test.go
@@ -80,7 +80,7 @@ func TestNewEntity(t *testing.T) {
t.Errorf("failed to find bit length: %s", err)
}
if int(bl) != defaultRSAKeyBits {
- t.Errorf("BitLength %v, expected %v", defaultRSAKeyBits)
+ t.Errorf("BitLength %v, expected %v", int(bl), defaultRSAKeyBits)
}
// Check bit-length with a config.
@@ -238,7 +238,7 @@ func TestEncryption(t *testing.T) {
signKey, _ := kring[0].signingKey(testTime)
expectedKeyId := signKey.PublicKey.KeyId
if md.SignedByKeyId != expectedKeyId {
- t.Errorf("#%d: message signed by wrong key id, got: %d, want: %d", i, *md.SignedBy, expectedKeyId)
+ t.Errorf("#%d: message signed by wrong key id, got: %v, want: %v", i, *md.SignedBy, expectedKeyId)
}
if md.SignedBy == nil {
t.Errorf("#%d: failed to find the signing Entity", i)