Commit graph

2 commits

Author SHA1 Message Date
Miek Gieben
db6c9a3f01 middleware/metrics: fix crash on startup (#318)
Make the methods that handle Metrics all use pointer receivers to fix
sync.Once not being initialized.

Finish the setup_test to test for failures. And make the check for the
address more strict and return an error when it does not have a port
number.

Add a toplevel test that starts a CoreDNS server with metrics enabled
so we catch these errors in the future.
2016-10-04 11:05:04 +01:00
Miek Gieben
edc867fe56 middleware/metrics: fix crash (#295)
Fix the crash and add `setup_test.go` to catch this in the future.

Fixes #292
2016-09-24 22:47:38 +01:00