embed: etcd.Close() is closing Errc() channel as well.

Inspired by https://github.com/etcd-io/etcd/pull/9612 by purpleidea@.
This commit is contained in:
Piotr Tabor
2021-04-04 15:25:10 +02:00
parent dfb03aba0b
commit 5da9cac193
6 changed files with 22 additions and 14 deletions

View File

@@ -26,12 +26,11 @@ import (
// TestStartEtcdWrongToken ensures that StartEtcd with wrong configs returns with error.
func TestStartEtcdWrongToken(t *testing.T) {
tdir, err := ioutil.TempDir(os.TempDir(), "token-test")
tdir, err := ioutil.TempDir(t.TempDir(), "token-test")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(tdir)
cfg := NewConfig()