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 43
43
</PropertyGroup >
44
44
45
45
<ItemGroup >
46
- <PackageReference Include =" DnsClient" Version =" 1.2.0 " />
46
+ <PackageReference Include =" DnsClient" Version =" 1.3.1 " />
47
47
<PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.6.2" PrivateAssets =" All" />
48
48
<PackageReference Include =" MongoDB.Libmongocrypt" Version =" 1.0.0" />
49
49
<PackageReference Include =" SharpCompress" Version =" 0.23.0" />
59
59
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard1.5'" >
60
60
<PackageReference Include =" System.Collections.Specialized" Version =" 4.0.1" />
61
61
<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" />
63
63
<PackageReference Include =" System.Net.NameResolution" Version =" 4.3.0" />
64
64
<PackageReference Include =" System.Net.Security" Version =" 4.3.2" />
65
65
<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
105
105
exception = Record . Exception ( ( ) => subject . ResolveSrvRecordsAsync ( service , cts . Token ) . GetAwaiter ( ) . GetResult ( ) ) ;
106
106
}
107
107
108
- exception . Should ( ) . BeOfType < OperationCanceledException > ( ) ;
108
+ exception . Should ( ) . Match < Exception > ( e => e is OperationCanceledException || e . InnerException is OperationCanceledException ) ;
109
109
}
110
110
111
111
[ Theory ]
@@ -171,7 +171,7 @@ public void ResolveTxtRecords_should_throw_when_cancellation_is_already_requeste
171
171
exception = Record . Exception ( ( ) => subject . ResolveTxtRecordsAsync ( domainName , cts . Token ) . GetAwaiter ( ) . GetResult ( ) ) ;
172
172
}
173
173
174
- exception . Should ( ) . BeOfType < OperationCanceledException > ( ) ;
174
+ exception . Should ( ) . Match < Exception > ( e => e is OperationCanceledException || e . InnerException is OperationCanceledException ) ;
175
175
}
176
176
}
177
177
}
Original file line number Diff line number Diff line change 39
39
</PropertyGroup >
40
40
41
41
<ItemGroup >
42
- <PackageReference Include =" DnsClient" Version =" 1.2.0" />
43
42
<PackageReference Include =" FluentAssertions" Version =" 4.12.0" />
44
43
<PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.6.2" />
45
44
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.8.0" />
You can’t perform that action at this time.
0 commit comments