Improve active_tcp test timeout

This commit is contained in:
Jo Turk
2026-01-08 23:01:02 +02:00
parent 7fd68a39d1
commit 4da5bc14ec
+2 -2
View File
@@ -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{