aboutsummaryrefslogtreecommitdiff
path: root/plugin/dnstap/setup_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2019-09-28 10:41:12 +0100
committerGravatar GitHub <noreply@github.com> 2019-09-28 10:41:12 +0100
commit03a3695ea9af1ff704861141a6ca807d742a894f (patch)
treeaf54c350e492f8d8c9bc5e16a40404940a5c97f3 /plugin/dnstap/setup_test.go
parentba5d4a637271b302830e38af0092d798bd9ad668 (diff)
downloadcoredns-03a3695ea9af1ff704861141a6ca807d742a894f.tar.gz
coredns-03a3695ea9af1ff704861141a6ca807d742a894f.tar.zst
coredns-03a3695ea9af1ff704861141a6ca807d742a894f.zip
plugins: calling Dispenser itself is a mistake (#3323)
Remove all these uses and just make them work on caddy.Controller. Also don't export parsing functions as their should be private to the plugin. Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/dnstap/setup_test.go')
-rw-r--r--plugin/dnstap/setup_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/dnstap/setup_test.go b/plugin/dnstap/setup_test.go
index eef941d89..5ed8c3b6a 100644
--- a/plugin/dnstap/setup_test.go
+++ b/plugin/dnstap/setup_test.go
@@ -21,7 +21,7 @@ func TestConfig(t *testing.T) {
}
for _, c := range tests {
cad := caddy.NewTestController("dns", c.file)
- conf, err := parseConfig(&cad.Dispenser)
+ conf, err := parseConfig(cad)
if c.fail {
if err == nil {
t.Errorf("%s: %s", c.file, err)