fix: remove unnecessary conversion (#6258)
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
This commit is contained in:
parent
141c760846
commit
5de473da1c
15 changed files with 20 additions and 19 deletions
|
@ -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])
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue