Skip to content

Commit 6130ffe

Browse files
authored
Use the key of [email protected] for the unit test (#882) (#906)
* `golang.org/x/crypto/openpgp` requires keys contain identity information. * A email address can have only a single key with identity information on keys.openpgp.org.
1 parent 5af8e63 commit 6130ffe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pgp/keysource_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ func TestPGPKeySourceFromString(t *testing.T) {
4444
}
4545

4646
func TestRetrievePGPKey(t *testing.T) {
47-
fingerprint := "FBC7B9E2A4F9289AC0C1D4843D16CEE4A27381B4"
47+
// Requires a key available in https://keys.openpgp.org/ *with identity information* (that is, an email address).
48+
// See https://keys.openpgp.org/about/faq#verify-multiple for details about identity information.
49+
// We use the key of [email protected] for here.
50+
fingerprint := "14F26682D0916CDD81E37B6D61B7B526D98F0353"
4851
_, err := getKeyFromKeyServer(fingerprint)
4952
assert.NoError(t, err)
5053
}

0 commit comments

Comments
 (0)