Skip to content

Commit

Permalink
Cleanup TestConcurrentQueries (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek authored Sep 25, 2018
1 parent c73fe84 commit 3f28d90
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/m3ninx/search/proptest/concurrent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,14 @@ func TestConcurrentQueries(t *testing.T) {
require.NoError(t, err)

var (
wg sync.WaitGroup
errLock sync.Mutex
matchErr error
numConcurrentWorkers = 2
wg sync.WaitGroup
errLock sync.Mutex
matchErr error
)
wg.Add(2)
wg.Add(numConcurrentWorkers)

for i := 0; i < 2; i++ {
for i := 0; i < numConcurrentWorkers; i++ {
go func() {
defer wg.Done()
fstDocs, err := fstExec.Execute(q)
Expand Down

0 comments on commit 3f28d90

Please sign in to comment.