Skip to content

Commit 33220b2

Browse files
committed
pr
1 parent f15e9bd commit 33220b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedErrorMatcher.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,14 @@ private void AssertWriteErrors(Exception actualException, BsonDocument expectedW
239239

240240
private static Exception UnwrapCommandException(Exception ex)
241241
{
242-
if (ex is MongoConnectionException connectionException)
242+
if (ex is ClientBulkWriteException bulkWriteException)
243243
{
244-
ex = connectionException.InnerException;
244+
ex = bulkWriteException.InnerException;
245245
}
246246

247-
if (ex is ClientBulkWriteException bulkWriteException)
247+
if (ex is MongoConnectionException connectionException)
248248
{
249-
ex = bulkWriteException.InnerException;
249+
ex = connectionException.InnerException;
250250
}
251251

252252
return ex;

0 commit comments

Comments
 (0)