mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
etcd: Wait for server to be stopped in tests.
This commit is contained in:
parent
307ffdc29a
commit
a50d637107
2 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue