diff options
author | 2017-09-01 09:45:39 -0700 | |
---|---|---|
committer | 2017-09-01 18:45:39 +0200 | |
commit | 6493858893960c677f1af118ff53626366d40a22 (patch) | |
tree | f664fa2afc06f7914eb427044cbfd695dbcc20db /middleware | |
parent | 778fb731770bb4681d9e17dc415d46ae196c0528 (diff) | |
download | coredns-6493858893960c677f1af118ff53626366d40a22.tar.gz coredns-6493858893960c677f1af118ff53626366d40a22.tar.zst coredns-6493858893960c677f1af118ff53626366d40a22.zip |
Use context.TODO() in tests for go vet fix (#1017)
See #997 #1000.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'middleware')
-rw-r--r-- | middleware/etcd/lookup_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/etcd/lookup_test.go b/middleware/etcd/lookup_test.go index 1a42b5c98..010bd66df 100644 --- a/middleware/etcd/lookup_test.go +++ b/middleware/etcd/lookup_test.go @@ -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() |