Skip to content

Commit 874ccf3

Browse files
committed
test: 测试连接超时
1 parent a07876c commit 874ccf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/UnitTest/Services/TcpSocketFactoryTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public async Task GetOrCreate_Ok()
4949
public async Task ConnectAsync_Timeout()
5050
{
5151
var client = CreateClient();
52-
client.Options.ConnectTimeout = 100;
52+
client.Options.ConnectTimeout = 1;
5353

5454
var connect = await client.ConnectAsync("localhost", 9999);
5555
Assert.False(connect);

0 commit comments

Comments
 (0)