Partial undo of 85a3a7f524

Broke i386 tests
This commit is contained in:
Sean DuBois
2024-03-23 20:34:30 -04:00
parent 85a3a7f524
commit b2e40ad7fa
+2 -1
View File
@@ -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 {
@@ -470,6 +470,7 @@ func TestSTUNTURNConcurrency(t *testing.T) {
require.NoError(t, a.GatherCandidates())
<-candidateGathered.Done()
gatherLim.Stop()
}
require.NoError(t, a.Close())