Skip to content

Commit aedca5d

Browse files
fix flaky test
1 parent e94bd45 commit aedca5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

network-api/network-api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@ const testCert = "-----BEGIN CERTIFICATE-----\n" +
143143
func TestNetworkAPI(t *testing.T) {
144144
ctx := t.Context()
145145
var rpc *msgpackrpc.Connection
146-
listID, err := tcpListen(ctx, rpc, []any{"localhost:8080"})
146+
listID, err := tcpListen(ctx, rpc, []any{"localhost:9999"})
147147
require.Nil(t, err)
148148
require.Equal(t, uint(1), listID)
149149

150150
var wg sync.WaitGroup
151151
wg.Add(1)
152152
go func() {
153-
connID, err := tcpConnect(ctx, rpc, []any{"localhost:8080"})
153+
connID, err := tcpConnect(ctx, rpc, []any{"localhost:9999"})
154154
require.Nil(t, err)
155155
require.Equal(t, uint(2), connID)
156156

0 commit comments

Comments
 (0)