From 8c2e1134a5d5738e41d8ad5321dfb1eb41c3e81e Mon Sep 17 00:00:00 2001 From: Nikolay Bystritskiy Date: Fri, 4 Feb 2022 18:29:58 +0100 Subject: [PATCH] tests and refactor --- app/acme/dns_challenge_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/acme/dns_challenge_test.go b/app/acme/dns_challenge_test.go index 5d6ce837..6a0210b5 100644 --- a/app/acme/dns_challenge_test.go +++ b/app/acme/dns_challenge_test.go @@ -1087,12 +1087,12 @@ func TestDNSChallenge_presentRecords(t *testing.T) { {"add records failed", fields{records: []dnsprovider.Record{{Domain: "mycompany-6.com"}}, addedRecords: []dnsprovider.Record{}, - removedRecords: []dnsprovider.Record{}}, + removedRecords: []dnsprovider.Record{{Domain: "mycompany-6.com"}}}, true}, {"one record added, one failed", fields{records: []dnsprovider.Record{{Domain: "mycompany-0.com"}, {Domain: "mycompany-6.com"}}, addedRecords: []dnsprovider.Record{{Domain: "mycompany-0.com"}}, - removedRecords: []dnsprovider.Record{{Domain: "mycompany-0.com"}}}, + removedRecords: []dnsprovider.Record{{Domain: "mycompany-0.com"}, {Domain: "mycompany-6.com"}}}, true}, } for _, tt := range tests {