From 9245dda5f13a5a1892b366e557096988ccf63d52 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Mon, 2 Oct 2023 19:20:32 -0700 Subject: [PATCH] pgp: fix dropped test errors Signed-off-by: Lars Lehtonen --- pgp/keysource_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pgp/keysource_test.go b/pgp/keysource_test.go index b6145fcef..26843229a 100644 --- a/pgp/keysource_test.go +++ b/pgp/keysource_test.go @@ -332,6 +332,7 @@ func TestMasterKey_Decrypt(t *testing.T) { fingerprint, "--no-encrypt-to", }, bytes.NewReader(data)) + assert.NoError(t, err) assert.NoErrorf(t, gnuPGHome.ImportFile(mockPrivateKey), stderr.String()) encryptedData := stdout.String() @@ -414,6 +415,7 @@ func TestMasterKey_decryptWithOpenPGP(t *testing.T) { fingerprint, "--no-encrypt-to", }, bytes.NewReader(data)) + assert.NoError(t, err) assert.NoErrorf(t, gnuPGHome.ImportFile(mockPrivateKey), stderr.String()) encryptedData := stdout.String() @@ -462,6 +464,7 @@ func TestMasterKey_decryptWithGnuPG(t *testing.T) { fingerprint, "--no-encrypt-to", }, bytes.NewReader(data)) + assert.NoError(t, err) assert.NoErrorf(t, gnuPGHome.ImportFile(mockPrivateKey), stderr.String()) encryptedData := stdout.String()