File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public void Tcp()
5454 }
5555
5656 [ Fact ]
57- public async void Async ( )
57+ public async Task Async ( )
5858 {
5959 using var server = new ServerSocket ( ) ;
6060 using var client = new ClientSocket ( ) ;
@@ -72,7 +72,7 @@ public async void Async()
7272 }
7373
7474 [ Fact ]
75- public async void AsyncWithCancellationToken ( )
75+ public async Task AsyncWithCancellationToken ( )
7676 {
7777 using CancellationTokenSource source = new CancellationTokenSource ( ) ;
7878 using var server = new ServerSocket ( ) ;
@@ -85,7 +85,7 @@ public async void AsyncWithCancellationToken()
8585#if NETCOREAPP3_1
8686
8787 [ Fact ( Timeout = 120 ) ]
88- public async void AsyncEnumerableCanceled ( )
88+ public async Task AsyncEnumerableCanceled ( )
8989 {
9090 using CancellationTokenSource source = new CancellationTokenSource ( ) ;
9191 using var server = new ServerSocket ( ) ;
Original file line number Diff line number Diff line change 11using System ;
22using System . Threading ;
3+ using System . Threading . Tasks ;
34using NetMQ . Sockets ;
45using Xunit ;
56using Xunit . Abstractions ;
@@ -47,7 +48,7 @@ public void TestBlocking()
4748 }
4849
4950 [ Fact ]
50- public async void TestAsync ( )
51+ public async Task TestAsync ( )
5152 {
5253 using var radio = new RadioSocket ( ) ;
5354 using var dish = new DishSocket ( ) ;
Original file line number Diff line number Diff line change 11using System . Threading ;
2+ using System . Threading . Tasks ;
23using NetMQ . Sockets ;
34using Xunit ;
45
@@ -47,7 +48,7 @@ public void TestBlocking()
4748 }
4849
4950 [ Fact ]
50- public async void TestAsync ( )
51+ public async Task TestAsync ( )
5152 {
5253 using var scatter = new ScatterSocket ( ) ;
5354 using var gather = new GatherSocket ( ) ;
You can’t perform that action at this time.
0 commit comments