mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
fix: remove unnecessary conversion (#6258)
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
This commit is contained in:
@@ -37,7 +37,7 @@ func TestErraticDrop(t *testing.T) {
|
||||
if err != tc.expectedErr {
|
||||
t.Errorf("Test %d: Expected error %q, but got %q", i, tc.expectedErr, err)
|
||||
}
|
||||
if code != int(tc.expectedCode) {
|
||||
if code != tc.expectedCode {
|
||||
t.Errorf("Test %d: Expected status code %d, but got %d", i, tc.expectedCode, code)
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ func TestErraticTruncate(t *testing.T) {
|
||||
if err != tc.expectedErr {
|
||||
t.Errorf("Test %d: Expected error %q, but got %q", i, tc.expectedErr, err)
|
||||
}
|
||||
if code != int(tc.expectedCode) {
|
||||
if code != tc.expectedCode {
|
||||
t.Errorf("Test %d: Expected status code %d, but got %d", i, tc.expectedCode, code)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user