From f7bfa8949af33745f324fb68a71fc190b1c24deb Mon Sep 17 00:00:00 2001 From: Miciah Masters Date: Mon, 14 Nov 2022 16:15:59 -0500 Subject: [PATCH] =?UTF-8?q?NE-1186:=20Test=5FgetRR:=20Fix=20typo:=20"excep?= =?UTF-8?q?ted"=20=E2=86=92=20"expected"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * pkg/dns/alibaba/dns_test.go (Test_getRR): Replace "excepted" with "expected" in test case struct definition. --- pkg/dns/alibaba/dns_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/dns/alibaba/dns_test.go b/pkg/dns/alibaba/dns_test.go index 44ef51051f..ed72e95411 100644 --- a/pkg/dns/alibaba/dns_test.go +++ b/pkg/dns/alibaba/dns_test.go @@ -60,33 +60,33 @@ func TestGetRR(t *testing.T) { cases := []struct { dnsName string domainName string - excepted string + expected string }{ { dnsName: "test.example.com.", domainName: "example.com", - excepted: "test", + expected: "test", }, { dnsName: "test.subdomain.example.com.", domainName: "example.com", - excepted: "test.subdomain", + expected: "test.subdomain", }, { dnsName: "test.subdomain.example.com.", domainName: "subdomain.example.com", - excepted: "test", + expected: "test", }, { dnsName: "without.domain.", domainName: "example.com", - excepted: "without.domain", + expected: "without.domain", }, } for _, c := range cases { rr := getRR(c.dnsName, c.domainName) - assert.Equal(t, c.excepted, rr) + assert.Equal(t, c.expected, rr) } }