aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--account_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/account_test.go b/account_test.go
index 8ff4ebf..e5f5ab5 100644
--- a/account_test.go
+++ b/account_test.go
@@ -1,6 +1,9 @@
package acme
-import "testing"
+import (
+ "os"
+ "testing"
+)
func TestSaveEC(t *testing.T) {
a, err := NewAccountEC()
@@ -11,6 +14,7 @@ func TestSaveEC(t *testing.T) {
if err != nil {
t.Error(err)
}
+ defer os.Remove("testEC.key")
}
func TestSaveRSA(t *testing.T) {
@@ -22,6 +26,7 @@ func TestSaveRSA(t *testing.T) {
if err != nil {
t.Error(err)
}
+ defer os.Remove("testRSA.key")
}
const emtpyKA = ".nby9DvkdEB0ex5-IK3bxu1c1HA_bAHxeYzo-8twil28"