aboutsummaryrefslogtreecommitdiff
path: root/plugin/erratic/erratic_test.go
diff options
context:
space:
mode:
authorGravatar Zhizhen He <hezhizhen.yi@gmail.com> 2023-08-14 21:14:09 +0800
committerGravatar GitHub <noreply@github.com> 2023-08-14 15:14:09 +0200
commit5de473da1c6245c983fe05bbaba1a5683b4f3e32 (patch)
treef02c406536f5288ae602ad5ef355d45e3e1a3b0d /plugin/erratic/erratic_test.go
parent141c760846df094e0dd5078aab8559c28c5a9644 (diff)
downloadcoredns-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/erratic/erratic_test.go')
-rw-r--r--plugin/erratic/erratic_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/erratic/erratic_test.go b/plugin/erratic/erratic_test.go
index ec2ec5c0a..de8dbe4d6 100644
--- a/plugin/erratic/erratic_test.go
+++ b/plugin/erratic/erratic_test.go
@@ -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)
}