From b2e40ad7fa70503f4f3ee499629471342336e84e Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Sat, 23 Mar 2024 20:34:30 -0400 Subject: [PATCH] Partial undo of 85a3a7f52407 Broke i386 tests --- gather_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gather_test.go b/gather_test.go index 1c14fe7..5fd42b6 100644 --- a/gather_test.go +++ b/gather_test.go @@ -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())