@@ -141,40 +141,10 @@ async def asyncTearDown(self) -> None:
141
141
self .deprecation_filter .stop ()
142
142
143
143
144
- class TestRetryableWritesMMAPv1 (IgnoreDeprecationsTest ):
145
- knobs : client_knobs
146
-
147
- async def asyncSetUp (self ) -> None :
148
- await super ().asyncSetUp ()
149
- # Speed up the tests by decreasing the heartbeat frequency.
150
- self .knobs = client_knobs (heartbeat_frequency = 0.1 , min_heartbeat_interval = 0.1 )
151
- self .knobs .enable ()
152
- self .client = await self .async_rs_or_single_client (retryWrites = True )
153
- self .db = self .client .pymongo_test
154
-
155
- async def asyncTearDown (self ) -> None :
156
- self .knobs .disable ()
157
-
158
- @async_client_context .require_no_standalone
159
- async def test_actionable_error_message (self ):
160
- if async_client_context .storage_engine != "mmapv1" :
161
- raise SkipTest ("This cluster is not running MMAPv1" )
162
-
163
- expected_msg = (
164
- "This MongoDB deployment does not support retryable "
165
- "writes. Please add retryWrites=false to your "
166
- "connection string."
167
- )
168
- for method , args , kwargs in retryable_single_statement_ops (self .db .retryable_write_test ):
169
- with self .assertRaisesRegex (OperationFailure , expected_msg ):
170
- await method (* args , ** kwargs )
171
-
172
-
173
144
class TestRetryableWrites (IgnoreDeprecationsTest ):
174
145
listener : OvertCommandListener
175
146
knobs : client_knobs
176
147
177
- @async_client_context .require_no_mmap
178
148
async def asyncSetUp (self ) -> None :
179
149
await super ().asyncSetUp ()
180
150
# Speed up the tests by decreasing the heartbeat frequency.
@@ -427,7 +397,6 @@ class TestWriteConcernError(AsyncIntegrationTest):
427
397
fail_insert : dict
428
398
429
399
@async_client_context .require_replica_set
430
- @async_client_context .require_no_mmap
431
400
@async_client_context .require_failCommand_fail_point
432
401
async def asyncSetUp (self ) -> None :
433
402
await super ().asyncSetUp ()
@@ -599,7 +568,6 @@ async def test_returns_original_error_code(
599
568
# TODO: Make this a real integration test where we stepdown the primary.
600
569
class TestRetryableWritesTxnNumber (IgnoreDeprecationsTest ):
601
570
@async_client_context .require_replica_set
602
- @async_client_context .require_no_mmap
603
571
async def test_increment_transaction_id_without_sending_command (self ):
604
572
"""Test that the txnNumber field is properly incremented, even when
605
573
the first attempt fails before sending the command.
0 commit comments