Fixed goroutine leak in tests/integration/v3_watch_restore_test.go

Signed-off-by: VladSaioc <vladsaioc10@gmail.com>
This commit is contained in:
VladSaioc 2022-07-31 23:28:26 +02:00
parent 046c46e52e
commit 2c89834608

View File

@ -130,7 +130,7 @@ func TestV3WatchRestoreSnapshotUnsync(t *testing.T) {
// should be able to notify on old-revision watchers in unsynced
// make sure restore watch operation correctly moves watchers
// between synced and unsynced watchers
errc := make(chan error)
errc := make(chan error, 1)
go func() {
cresp, cerr := wStream.Recv()
if cerr != nil {