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 114
114
</ItemGroup >
115
115
116
116
<ItemGroup >
117
- <PackageReference Include =" DnsClient" Version =" 1.2.0 " />
117
+ <PackageReference Include =" DnsClient" Version =" 1.3.1 " />
118
118
<PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.6.2" PrivateAssets =" All" />
119
119
<PackageReference Include =" MongoDB.Libmongocrypt" Version =" 1.0.0" />
120
120
<PackageReference Include =" SharpCompress" Version =" 0.23.0" />
129
129
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard1.5'" >
130
130
<PackageReference Include =" System.Collections.Specialized" Version =" 4.0.1" />
131
131
<PackageReference Include =" System.Diagnostics.TextWriterTraceListener" Version =" 4.0.0" />
132
- <PackageReference Include =" System.Diagnostics.TraceSource" Version =" 4.0 .0" />
132
+ <PackageReference Include =" System.Diagnostics.TraceSource" Version =" 4.3 .0" />
133
133
<PackageReference Include =" System.Net.NameResolution" Version =" 4.3.0" />
134
134
<PackageReference Include =" System.Net.Security" Version =" 4.3.2" />
135
135
<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