1616//-----------------------------------------------------------------------------
1717
1818using System . Linq ;
19+ using System . Threading . Tasks ;
1920using DnsClient ;
2021using Microsoft . Extensions . Logging ;
2122using SIPSorcery . SIP ;
@@ -40,7 +41,7 @@ public DNSUnitTest(Xunit.Abstractions.ITestOutputHelper output)
4041 /// </summary>
4142 [ Fact ( Skip = "DNS Queries for QType.ANY are not supported widely in the wild." ) ]
4243 //[Fact]
43- public async void LookupAnyRecordTest ( )
44+ public async Task LookupAnyRecordTest ( )
4445 {
4546 logger . LogDebug ( "--> {MethodName}" , System . Reflection . MethodBase . GetCurrentMethod ( ) . Name ) ;
4647 logger . BeginScope ( System . Reflection . MethodBase . GetCurrentMethod ( ) . Name ) ;
@@ -72,7 +73,7 @@ public async void LookupAnyRecordTest()
7273 /// </summary>
7374 [ Fact ( Skip = "DNS Queries for QType.ANY are not supported widely in the wild." ) ]
7475 //[Fact]
75- public async void LookupAnyRecordAsyncCacheTest ( )
76+ public async Task LookupAnyRecordAsyncCacheTest ( )
7677 {
7778 logger . LogDebug ( "--> {MethodName}" , System . Reflection . MethodBase . GetCurrentMethod ( ) . Name ) ;
7879 logger . BeginScope ( System . Reflection . MethodBase . GetCurrentMethod ( ) . Name ) ;
@@ -132,7 +133,7 @@ public async void LookupARecordMethod()
132133 /// Test that a known AAAA record is resolved.
133134 /// </summary>
134135 [ Fact ]
135- public async void LookupAAAARecordMethod ( )
136+ public async Task LookupAAAARecordMethod ( )
136137 {
137138 logger . LogDebug ( "--> {MethodName}" , System . Reflection . MethodBase . GetCurrentMethod ( ) . Name ) ;
138139 logger . BeginScope ( System . Reflection . MethodBase . GetCurrentMethod ( ) . Name ) ;
@@ -168,7 +169,7 @@ public async void LookupAAAARecordMethod()
168169 }
169170
170171 [ Fact ]
171- public async void LookupSrvRecordMethod ( )
172+ public async Task LookupSrvRecordMethod ( )
172173 {
173174 logger . LogDebug ( "--> {MethodName}" , System . Reflection . MethodBase . GetCurrentMethod ( ) . Name ) ;
174175 logger . BeginScope ( System . Reflection . MethodBase . GetCurrentMethod ( ) . Name ) ;
0 commit comments