Skip to content

Commit 4e85357

Browse files
synctest_is_go125
Signed-off-by: Adrian Cole <[email protected]>
1 parent c2fabad commit 4e85357

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

internal/infrastructure/host/proxy_infra_test.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"io"
1212
"path"
1313
"testing"
14-
"testing/synctest"
1514
"time"
1615

1716
"github.com/stretchr/testify/require"
@@ -156,11 +155,9 @@ func TestInfra_Close(t *testing.T) {
156155
})
157156
require.Equal(t, 3, count, "expected 3 proxies to be running")
158157

159-
// Close should stop all proxies and not leak goroutines
160-
synctest.Test(t, func(t *testing.T) {
161-
err := i.Close()
162-
require.NoError(t, err)
163-
})
158+
// Close should stop all proxies
159+
err = i.Close()
160+
require.NoError(t, err)
164161

165162
// Verify all proxies are stopped
166163
found := false

0 commit comments

Comments
 (0)