Skip to content

Commit 7d8033a

Browse files
CSHARP-2989: Fix test.
1 parent 92bdb71 commit 7d8033a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/MongoDB.Driver.Tests/AggregateFluentTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,11 @@ public void Group_with_accumulator_should_return_expected_result()
304304
{ "maxCopies", new BsonDocument("$max", "$copies") }
305305
};
306306

307-
var result = collection.Aggregate().Group(groupProjection).ToList();
307+
var result = collection
308+
.Aggregate()
309+
.Group(groupProjection)
310+
.Sort("{ _id : 1 }")
311+
.ToList();
308312

309313
result.Count.Should().Be(2);
310314
result[0].Should().Be("{ _id : 'Dante', minCopies : 1, avgCopies : 1.6666666666666667, maxCopies : 2 }");

0 commit comments

Comments
 (0)