diff options
Diffstat (limited to 'lib/crypto/gpg/writer_test.go')
-rw-r--r-- | lib/crypto/gpg/writer_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/crypto/gpg/writer_test.go b/lib/crypto/gpg/writer_test.go index 0f9ab10..e8defc1 100644 --- a/lib/crypto/gpg/writer_test.go +++ b/lib/crypto/gpg/writer_test.go @@ -16,6 +16,8 @@ func init() { } func TestEncrypt(t *testing.T) { + initGPGtest(t) + importPublicKey() importSecretKey() var h textproto.Header @@ -55,11 +57,11 @@ func TestEncrypt(t *testing.T) { if s := body.String(); s != wantEncrypted { t.Errorf("Encrypt() = \n%v\n but want \n%v", s, wantEncrypted) } - - t.Cleanup(CleanUp) } func TestSign(t *testing.T) { + initGPGtest(t) + importPublicKey() importSecretKey() var h textproto.Header |