We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f979f0 commit 852587cCopy full SHA for 852587c
events/exchange/exchange_test.go
@@ -19,7 +19,6 @@ package exchange
19
import (
20
"context"
21
"reflect"
22
- "sync"
23
"testing"
24
"time"
25
@@ -221,11 +220,8 @@ func TestExchangeFilters(t *testing.T) {
221
220
}
222
223
t.Log("publish")
224
- var wg sync.WaitGroup
225
- wg.Add(1)
226
errChan := make(chan error)
227
go func() {
228
- defer wg.Done()
229
defer close(errChan)
230
for _, es := range testEventSets {
231
for _, e := range es.events {
@@ -240,7 +236,6 @@ func TestExchangeFilters(t *testing.T) {
240
236
}()
241
237
242
238
t.Log("waiting")
243
- wg.Wait()
244
239
if err := <-errChan; err != nil {
245
t.Fatal(err)
246
0 commit comments