fakemongo / fongo

faked out in-memory mongo for java
Apache License 2.0
523 stars 156 forks source link

bulkWrite with a DeleteOneModel yields a modified count of 1 #360

Open crnflke opened 6 years ago

crnflke commented 6 years ago

If I issue a bulkWrite with a DeleteOneModel then I get a modified count of 1 and a deleted count of 1 - if I do this on the Mongo driver, I see a modified count of 0.

I can't see an obvious way of triggering behaviour like this on the Mongo driver so I believe this is a bug in Fongo.