aboutsummaryrefslogtreecommitdiff
path: root/plugin/health/setup_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2019-05-04 21:06:04 +0100
committerGravatar Yong Tang <yong.tang.github@outlook.com> 2019-05-04 16:06:04 -0400
commit890cdb5cab8bb898dd048d853791ec82e28003ad (patch)
tree00e613e16fbdbdc6fba7489192b735cc98714a4b /plugin/health/setup_test.go
parente178291ed6a9eae5d24bae132b0f4c2f4d75f662 (diff)
downloadcoredns-890cdb5cab8bb898dd048d853791ec82e28003ad.tar.gz
coredns-890cdb5cab8bb898dd048d853791ec82e28003ad.tar.zst
coredns-890cdb5cab8bb898dd048d853791ec82e28003ad.zip
plugin/health: cleanups (#2811)
Small, trivial cleanup: got triggered because I saw a comment on how health plugins polls other plugins which isn't true. * Remove useless newHealth function * healthParse -> parse * Remove useless constants Net deletion of code. Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/health/setup_test.go')
-rw-r--r--plugin/health/setup_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/health/setup_test.go b/plugin/health/setup_test.go
index 4db6fc770..35dc15509 100644
--- a/plugin/health/setup_test.go
+++ b/plugin/health/setup_test.go
@@ -30,7 +30,7 @@ func TestSetupHealth(t *testing.T) {
for i, test := range tests {
c := caddy.NewTestController("dns", test.input)
- _, _, err := healthParse(c)
+ _, _, err := parse(c)
if test.shouldErr && err == nil {
t.Errorf("Test %d: Expected error but found none for input %s", i, test.input)