aboutsummaryrefslogtreecommitdiff
path: root/plugin/bind/bind_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-02-28 19:56:14 -0800
committerGravatar GitHub <noreply@github.com> 2018-02-28 19:56:14 -0800
commit654b88d8c4dcf58717e7ee36e37200dabe9a307e (patch)
treec940066b3240c22b289e0adc98faf9bd4567ab39 /plugin/bind/bind_test.go
parent4f3dc207a46a29edd0f36b9242ce59a6c7e104d0 (diff)
downloadcoredns-654b88d8c4dcf58717e7ee36e37200dabe9a307e.tar.gz
coredns-654b88d8c4dcf58717e7ee36e37200dabe9a307e.tar.zst
coredns-654b88d8c4dcf58717e7ee36e37200dabe9a307e.zip
just use setup (#1574)
All these functions are namespaced by their package anyway; just use setup().
Diffstat (limited to 'plugin/bind/bind_test.go')
-rw-r--r--plugin/bind/bind_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/bind/bind_test.go b/plugin/bind/bind_test.go
index 9b1dc54aa..9e278418b 100644
--- a/plugin/bind/bind_test.go
+++ b/plugin/bind/bind_test.go
@@ -8,7 +8,7 @@ import (
"github.com/mholt/caddy"
)
-func TestSetupBind(t *testing.T) {
+func TestSetup(t *testing.T) {
for i, test := range []struct {
config string
expected []string
@@ -22,7 +22,7 @@ func TestSetupBind(t *testing.T) {
{`bind ::1 1.2.3.4 ::5 127.9.9.0 noone`, nil, true},
} {
c := caddy.NewTestController("dns", test.config)
- err := setupBind(c)
+ err := setup(c)
if err != nil {
if !test.failing {
t.Fatalf("test %d, expected no errors, but got: %v", i, err)