summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-10-05 02:51:35 +0700
committerShulhan <ms@kilabit.info>2022-10-05 02:51:35 +0700
commit5b160b0b0f88748db525e1af89030fa7029f09c7 (patch)
treedcfe0d9fc2890ee939e042d6beca02e012beb013
parentc2270f4bc01d075b448797543344118768f2fd80 (diff)
downloadpakakeh.go-5b160b0b0f88748db525e1af89030fa7029f09c7.tar.xz
email/dkim: fix tests with -count=X, where X>1
-rw-r--r--lib/email/dkim/keypool_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/email/dkim/keypool_test.go b/lib/email/dkim/keypool_test.go
index f303fb02..59f27e42 100644
--- a/lib/email/dkim/keypool_test.go
+++ b/lib/email/dkim/keypool_test.go
@@ -12,6 +12,8 @@ import (
)
func TestKeyPoolClear(t *testing.T) {
+ DefaultKeyPool.Clear()
+
DefaultKeyPool.Put("example.com", &Key{ExpiredAt: 1})
got := DefaultKeyPool.String()
test.Assert(t, "DefaultKeyPool.Clear", "[{example.com 1}]", got)