diff options
author | 2023-08-14 21:14:09 +0800 | |
---|---|---|
committer | 2023-08-14 15:14:09 +0200 | |
commit | 5de473da1c6245c983fe05bbaba1a5683b4f3e32 (patch) | |
tree | f02c406536f5288ae602ad5ef355d45e3e1a3b0d /plugin/clouddns/clouddns_test.go | |
parent | 141c760846df094e0dd5078aab8559c28c5a9644 (diff) | |
download | coredns-5de473da1c6245c983fe05bbaba1a5683b4f3e32.tar.gz coredns-5de473da1c6245c983fe05bbaba1a5683b4f3e32.tar.zst coredns-5de473da1c6245c983fe05bbaba1a5683b4f3e32.zip |
fix: remove unnecessary conversion (#6258)
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
Diffstat (limited to 'plugin/clouddns/clouddns_test.go')
-rw-r--r-- | plugin/clouddns/clouddns_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/clouddns/clouddns_test.go b/plugin/clouddns/clouddns_test.go index f8a7a9d09..829aa71b0 100644 --- a/plugin/clouddns/clouddns_test.go +++ b/plugin/clouddns/clouddns_test.go @@ -292,7 +292,7 @@ func TestCloudDNS(t *testing.T) { if err != tc.expectedErr { t.Fatalf("Test %d: Expected error %v, but got %v", ti, tc.expectedErr, err) } - if code != int(tc.wantRetCode) { + if code != tc.wantRetCode { t.Fatalf("Test %d: Expected returned status code %s, but got %s", ti, dns.RcodeToString[tc.wantRetCode], dns.RcodeToString[code]) } |