mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-08 17:02:18 +02:00
etcd: Wait for server to be stopped in tests.
This commit is contained in:
parent
307ffdc29a
commit
a50d637107
|
@ -105,6 +105,7 @@ func NewEtcdForTest(t *testing.T) *embed.Etcd {
|
|||
|
||||
t.Cleanup(func() {
|
||||
etcd.Close()
|
||||
<-etcd.Server.StopNotify()
|
||||
})
|
||||
// Wait for server to be ready.
|
||||
<-etcd.Server.ReadyNotify()
|
||||
|
|
|
@ -102,6 +102,7 @@ func newEtcdForTesting(t *testing.T) *embed.Etcd {
|
|||
|
||||
t.Cleanup(func() {
|
||||
etcd.Close()
|
||||
<-etcd.Server.StopNotify()
|
||||
})
|
||||
// Wait for server to be ready.
|
||||
<-etcd.Server.ReadyNotify()
|
||||
|
|
Loading…
Reference in a new issue