More Middleware -> Plugin conversions (#1088)

Forgot about these.
This commit is contained in:
Miek Gieben
2017-09-16 14:13:28 +01:00
committed by GitHub
parent 6f874f0bd1
commit be47709270
15 changed files with 23 additions and 23 deletions

View File

@@ -221,7 +221,7 @@ var dnsTestCases = []test.Case{
},
}
func newEtcdMiddleware() *Etcd {
func newEtcdPlugin() *Etcd {
ctxt = context.TODO()
endpoints := []string{"http://localhost:2379"}
@@ -253,7 +253,7 @@ func delete(t *testing.T, e *Etcd, k string) {
}
func TestLookup(t *testing.T) {
etc := newEtcdMiddleware()
etc := newEtcdPlugin()
for _, serv := range services {
set(t, etc, serv.Key, 0, serv)
defer delete(t, etc, serv.Key)