mirror of
https://github.com/pion/ice.git
synced 2026-04-22 16:17:11 +08:00
Improve active_tcp test timeout
This commit is contained in:
+2
-2
@@ -69,8 +69,6 @@ func ipv6Available(t *testing.T) bool {
|
||||
func TestActiveTCP(t *testing.T) {
|
||||
defer test.CheckRoutines(t)()
|
||||
|
||||
defer test.TimeOut(time.Second * 5).Stop()
|
||||
|
||||
const listenPort = 7686
|
||||
type testCase struct {
|
||||
name string
|
||||
@@ -118,6 +116,8 @@ func TestActiveTCP(t *testing.T) {
|
||||
|
||||
for _, testCase := range testCases {
|
||||
t.Run(testCase.name, func(t *testing.T) {
|
||||
defer test.TimeOut(5 * time.Second).Stop()
|
||||
|
||||
req := require.New(t)
|
||||
|
||||
listener, err := net.ListenTCP("tcp", &net.TCPAddr{
|
||||
|
||||
Reference in New Issue
Block a user