diff options
author | 2017-08-27 07:39:44 +0100 | |
---|---|---|
committer | 2017-08-27 07:39:44 +0100 | |
commit | 9c56805d389dac89f7d5f5fc5b05407294ba3157 (patch) | |
tree | b72f3a41169c1f6529858a9d5970f605863c45bc /middleware | |
parent | 53d9b52d68fae7ed07ddfcf7e1724a796a8045cc (diff) | |
download | coredns-9c56805d389dac89f7d5f5fc5b05407294ba3157.tar.gz coredns-9c56805d389dac89f7d5f5fc5b05407294ba3157.tar.zst coredns-9c56805d389dac89f7d5f5fc5b05407294ba3157.zip |
mw/etcd: use context.TODO() in tests (#1000)
Go vet warning: fix use of context.
Fixes #997
Also make *auto*'s reload test less flaky by retrying
and then giving up.
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 e2cdee15c..1a42b5c98 100644 --- a/middleware/etcd/lookup_test.go +++ b/middleware/etcd/lookup_test.go @@ -20,7 +20,7 @@ import ( ) func init() { - ctxt, _ = context.WithTimeout(context.Background(), etcdTimeout) + ctxt = context.TODO() } // Note the key is encoded as DNS name, while in "reality" it is a etcd path. |