File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
tests/MongoDB.Driver.Core.Tests Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 4343 </PropertyGroup >
4444
4545 <ItemGroup >
46- <PackageReference Include =" DnsClient" Version =" 1.2.0 " />
46+ <PackageReference Include =" DnsClient" Version =" 1.3.1 " />
4747 <PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.6.2" PrivateAssets =" All" />
4848 <PackageReference Include =" MongoDB.Libmongocrypt" Version =" 1.0.0" />
4949 <PackageReference Include =" SharpCompress" Version =" 0.23.0" />
5959 <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard1.5'" >
6060 <PackageReference Include =" System.Collections.Specialized" Version =" 4.0.1" />
6161 <PackageReference Include =" System.Diagnostics.TextWriterTraceListener" Version =" 4.0.0" />
62- <PackageReference Include =" System.Diagnostics.TraceSource" Version =" 4.0 .0" />
62+ <PackageReference Include =" System.Diagnostics.TraceSource" Version =" 4.3 .0" />
6363 <PackageReference Include =" System.Net.NameResolution" Version =" 4.3.0" />
6464 <PackageReference Include =" System.Net.Security" Version =" 4.3.2" />
6565 <PackageReference Include =" System.Security.SecureString" Version =" 4.0.0" />
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public void ResolveSrvRecords_should_throw_when_cancellation_is_already_requeste
105105 exception = Record . Exception ( ( ) => subject . ResolveSrvRecordsAsync ( service , cts . Token ) . GetAwaiter ( ) . GetResult ( ) ) ;
106106 }
107107
108- exception . Should ( ) . BeOfType < OperationCanceledException > ( ) ;
108+ exception . Should ( ) . Match < Exception > ( e => e is OperationCanceledException || e . InnerException is OperationCanceledException ) ;
109109 }
110110
111111 [ Theory ]
@@ -171,7 +171,7 @@ public void ResolveTxtRecords_should_throw_when_cancellation_is_already_requeste
171171 exception = Record . Exception ( ( ) => subject . ResolveTxtRecordsAsync ( domainName , cts . Token ) . GetAwaiter ( ) . GetResult ( ) ) ;
172172 }
173173
174- exception . Should ( ) . BeOfType < OperationCanceledException > ( ) ;
174+ exception . Should ( ) . Match < Exception > ( e => e is OperationCanceledException || e . InnerException is OperationCanceledException ) ;
175175 }
176176 }
177177}
Original file line number Diff line number Diff line change 3939 </PropertyGroup >
4040
4141 <ItemGroup >
42- <PackageReference Include =" DnsClient" Version =" 1.2.0" />
4342 <PackageReference Include =" FluentAssertions" Version =" 4.12.0" />
4443 <PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.6.2" />
4544 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.8.0" />
You can’t perform that action at this time.
0 commit comments