Skip to content

Commit 02aeb1a

Browse files
codefromthecryptzirain
authored andcommitted
synctest_is_go125
Signed-off-by: Adrian Cole <[email protected]>
1 parent fb848c6 commit 02aeb1a

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"
@@ -158,11 +157,9 @@ func TestInfra_Close(t *testing.T) {
158157
})
159158
require.Equal(t, 3, count, "expected 3 proxies to be running")
160159

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

167164
// Verify all proxies are stopped
168165
found := false

0 commit comments

Comments
 (0)