Skip to content

Commit 5adcbb4

Browse files
author
rstam
committed
CSHARP-797: Modify unit tests to check WriteConcernResult thoroughly.
1 parent 674a5a0 commit 5adcbb4

File tree

2 files changed

+194
-112
lines changed

2 files changed

+194
-112
lines changed

MongoDB.Driver/MongoCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public virtual WriteConcernResult CreateIndex(IMongoIndexKeys keys, IMongoIndexO
292292
try
293293
{
294294
CreateIndexWithCommand(keys, options);
295-
var fakeResponse = new BsonDocument("ok", 1);
295+
var fakeResponse = new BsonDocument { { "ok", 1 }, { "n", 0 } };
296296
return new WriteConcernResult(fakeResponse);
297297
}
298298
catch (MongoCommandException ex)

0 commit comments

Comments
 (0)