File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,16 @@ public void GetOrCreate_Ok()
4444 factory . Dispose ( ) ;
4545 }
4646
47+ [ Fact ]
48+ public async Task ConnectAsync_Timeout ( )
49+ {
50+ var client = CreateClient ( ) ;
51+ client . ConnectTimeout = 1000 ;
52+
53+ var connect = await client . ConnectAsync ( "localhost" , 9999 ) ;
54+ Assert . False ( connect ) ;
55+ }
56+
4757 [ Fact ]
4858 public async Task ConnectAsync_Cancel ( )
4959 {
@@ -136,7 +146,7 @@ public async Task ReceiveAsync_Error()
136146 var port = 8882 ;
137147 var server = StartTcpServer ( port , MockSplitPackageAsync ) ;
138148
139- Assert . Equal ( 1024 * 10 , client . ReceiveBufferSize ) ;
149+ Assert . Equal ( 1024 * 64 , client . ReceiveBufferSize ) ;
140150
141151 client . ReceiveBufferSize = 1024 * 20 ;
142152 Assert . Equal ( 1024 * 20 , client . ReceiveBufferSize ) ;
You can’t perform that action at this time.
0 commit comments