mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Use context.TODO() in tests for go vet fix (#1017)
See #997 #1000. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -222,7 +222,7 @@ var dnsTestCases = []test.Case{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newEtcdMiddleware() *Etcd {
|
func newEtcdMiddleware() *Etcd {
|
||||||
ctxt, _ = context.WithTimeout(context.Background(), etcdTimeout)
|
ctxt = context.TODO()
|
||||||
|
|
||||||
endpoints := []string{"http://localhost:2379"}
|
endpoints := []string{"http://localhost:2379"}
|
||||||
tlsc, _ := tls.NewTLSConfigFromArgs()
|
tlsc, _ := tls.NewTLSConfigFromArgs()
|
||||||
|
|||||||
Reference in New Issue
Block a user