Skip to content

Commit

Permalink
old version of pymongo
Browse files Browse the repository at this point in the history
  • Loading branch information
idoshr committed Nov 3, 2024
1 parent 613af16 commit a6a112b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_debug_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def test__failed_command_logged__logged(self, py_db, registered_monitoring):
"""Failed command index 1 in provided test."""
col = pymongo.collection.Collection(py_db, "test", create=True)
with contextlib.suppress(OperationFailure):
col.create_index([["_id", -1]])
col.create_index([["_id", -1]], name="foo")
assert registered_monitoring.started_operations_count == 2
assert registered_monitoring.succeeded_operations_count == 1
assert registered_monitoring.failed_operations_count == 1
Expand Down

0 comments on commit a6a112b

Please sign in to comment.