Skip to content

Commit a1ac09c

Browse files
CSHARP-2842: Fix AggregateExplain test.
1 parent 634a1e1 commit a1ac09c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/MongoDB.Driver.Legacy.Tests/MongoCollectionTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
using MongoDB.Bson;
2222
using MongoDB.Bson.IO;
2323
using MongoDB.Bson.Serialization.Attributes;
24-
using MongoDB.Driver;
2524
using MongoDB.Driver.Builders;
2625
using MongoDB.Driver.Core;
2726
using MongoDB.Driver.GeoJsonObjectModel;
@@ -31,7 +30,6 @@
3130
using MongoDB.Driver.Core.TestHelpers.XunitExtensions;
3231
using MongoDB.Driver.Core.Clusters;
3332
using MongoDB.Driver.Core.Misc;
34-
using MongoDB.Driver.TestHelpers;
3533
using MongoDB.Driver.Core.Events;
3634
using MongoDB.Driver.Legacy.Tests;
3735

@@ -161,7 +159,8 @@ public void TestAggregateExplain()
161159
}
162160
});
163161

164-
Assert.True(result.Response.Contains("stages"));
162+
var response = result.Response;
163+
Assert.True(response.Contains("stages") || response.Contains("queryPlanner"));
165164
}
166165
}
167166

0 commit comments

Comments
 (0)