Skip to content

Commit

Permalink
Partial undo of 85a3a7f
Browse files Browse the repository at this point in the history
Broke i386 tests
  • Loading branch information
Sean-Der committed Mar 24, 2024
1 parent 85a3a7f commit b2e40ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gather_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ func TestSTUNTURNConcurrency(t *testing.T) {
require.NoError(t, err)

{
defer test.TimeOut(time.Second * 3).Stop() // As TURN and STUN should be checked in parallel, this should complete before the default STUN timeout (5s)
gatherLim := test.TimeOut(time.Second * 3) // As TURN and STUN should be checked in parallel, this should complete before the default STUN timeout (5s)
candidateGathered, candidateGatheredFunc := context.WithCancel(context.Background())
require.NoError(t, a.OnCandidate(func(c Candidate) {
if c != nil {
Expand All @@ -470,6 +470,7 @@ func TestSTUNTURNConcurrency(t *testing.T) {
require.NoError(t, a.GatherCandidates())

<-candidateGathered.Done()
gatherLim.Stop()
}

require.NoError(t, a.Close())
Expand Down

0 comments on commit b2e40ad

Please sign in to comment.