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()
54
54
}
55
55
56
56
[ Fact ]
57
- public async void Async ( )
57
+ public async Task Async ( )
58
58
{
59
59
using var server = new ServerSocket ( ) ;
60
60
using var client = new ClientSocket ( ) ;
@@ -72,7 +72,7 @@ public async void Async()
72
72
}
73
73
74
74
[ Fact ]
75
- public async void AsyncWithCancellationToken ( )
75
+ public async Task AsyncWithCancellationToken ( )
76
76
{
77
77
using CancellationTokenSource source = new CancellationTokenSource ( ) ;
78
78
using var server = new ServerSocket ( ) ;
@@ -85,7 +85,7 @@ public async void AsyncWithCancellationToken()
85
85
#if NETCOREAPP3_1
86
86
87
87
[ Fact ( Timeout = 120 ) ]
88
- public async void AsyncEnumerableCanceled ( )
88
+ public async Task AsyncEnumerableCanceled ( )
89
89
{
90
90
using CancellationTokenSource source = new CancellationTokenSource ( ) ;
91
91
using var server = new ServerSocket ( ) ;
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Threading ;
3
+ using System . Threading . Tasks ;
3
4
using NetMQ . Sockets ;
4
5
using Xunit ;
5
6
using Xunit . Abstractions ;
@@ -47,7 +48,7 @@ public void TestBlocking()
47
48
}
48
49
49
50
[ Fact ]
50
- public async void TestAsync ( )
51
+ public async Task TestAsync ( )
51
52
{
52
53
using var radio = new RadioSocket ( ) ;
53
54
using var dish = new DishSocket ( ) ;
Original file line number Diff line number Diff line change 1
1
using System . Threading ;
2
+ using System . Threading . Tasks ;
2
3
using NetMQ . Sockets ;
3
4
using Xunit ;
4
5
@@ -47,7 +48,7 @@ public void TestBlocking()
47
48
}
48
49
49
50
[ Fact ]
50
- public async void TestAsync ( )
51
+ public async Task TestAsync ( )
51
52
{
52
53
using var scatter = new ScatterSocket ( ) ;
53
54
using var gather = new GatherSocket ( ) ;
You can’t perform that action at this time.
0 commit comments