Skip to content

Commit 262842c

Browse files
committed
Fix test
1 parent 376f527 commit 262842c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

test/box_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func testSuitLargeUDP(t *testing.T, clientPort uint16, testPort uint16) {
8686
require.NoError(t, testPingPongWithPacketConn(t, testPort, dialUDP))
8787
require.NoError(t, testLargeDataWithConn(t, testPort, dialTCP))
8888
require.NoError(t, testLargeDataWithPacketConn(t, testPort, dialUDP))
89-
require.NoError(t, testLargeDataWithPacketConnSize(t, testPort, 1250, dialUDP))
89+
require.NoError(t, testLargeDataWithPacketConnSize(t, testPort, 5000, dialUDP))
9090
}
9191

9292
func testTCP(t *testing.T, clientPort uint16, testPort uint16) {

test/config/tuic-client.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
]
1010
},
1111
"local": {
12-
"server": "127.0.0.1:10001"
12+
"server": "127.0.0.1:10001",
13+
"max_packet_size": 65535
1314
},
1415
"log_level": "debug"
1516
}

test/config/tuic-server.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
},
66
"certificate": "/etc/tuic/cert.pem",
77
"private_key": "/etc/tuic/key.pem",
8+
"max_external_packet_size": 65535,
89
"log_level": "debug"
910
}

0 commit comments

Comments
 (0)