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.
This commit is contained in:
Miek Gieben
2017-08-27 07:39:44 +01:00
committed by GitHub
parent 53d9b52d68
commit 9c56805d38
2 changed files with 6 additions and 2 deletions

View File

@@ -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.