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:
Yong Tang
2017-09-01 09:45:39 -07:00
committed by Miek Gieben
parent 778fb73177
commit 6493858893

View File

@@ -222,7 +222,7 @@ var dnsTestCases = []test.Case{
}
func newEtcdMiddleware() *Etcd {
ctxt, _ = context.WithTimeout(context.Background(), etcdTimeout)
ctxt = context.TODO()
endpoints := []string{"http://localhost:2379"}
tlsc, _ := tls.NewTLSConfigFromArgs()