Skip to content

Commit 637bd95

Browse files
committed
Fix test
1 parent ef7db2c commit 637bd95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/MongoDB.Driver.Tests/Linq/Integration/MqlCreateObjectIdTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public async Task MqlCreateObjectId_in_aggregate()
102102
var collection = Fixture.Collection;
103103

104104
var pipeline = new EmptyPipelineDefinition<C>()
105-
.Match(d => d.Id != ObjectId.GenerateNewId())
105+
.Match(d => d.Id != Mql.CreateObjectId())
106106
.Project(d => new { NewId = Mql.CreateObjectId() });
107107

108108
var result = await collection.Aggregate(pipeline).ToListAsync();

0 commit comments

Comments
 (0)