Skip to content

Commit

Permalink
NE-1186: Test_getRR: Fix typo: "excepted" → "expected"
Browse files Browse the repository at this point in the history
* pkg/dns/alibaba/dns_test.go (Test_getRR): Replace "excepted" with
"expected" in test case struct definition.
  • Loading branch information
Miciah authored and gcs278 committed Jan 27, 2023
1 parent b086fd1 commit f7bfa89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/dns/alibaba/dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit f7bfa89

Please sign in to comment.