From e66247999b5365853f93e0331fa64027f08209cd Mon Sep 17 00:00:00 2001 From: DisposaBoy Date: Sun, 22 Mar 2020 12:46:03 +0000 Subject: [PATCH] Don't require .Delete on nonexistent keys to return an error. re: https://github.com/caddyserver/certmagic/issues/58 --- suite.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/suite.go b/suite.go index deb690f..787e2cd 100644 --- a/suite.go +++ b/suite.go @@ -157,10 +157,6 @@ func (ts *Suite) testStorageSingleKey(t *testing.T) { if sto.Exists(key) { t.Fatalf("Deleted key still %s exists", key) } - - if err := sto.Delete(key); err == nil { - t.Fatalf("Delete(%s) should fail: the key was already deleted", key) - } } func (ts *Suite) testStorageDir(t *testing.T) {