File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 33
33
from test import (
34
34
IntegrationTest ,
35
35
client_context ,
36
+ client_knobs ,
36
37
unittest ,
37
38
)
38
39
from test .helpers import (
@@ -1037,8 +1038,18 @@ def setUpClass(cls):
1037
1038
if "retryable-writes" in cls .TEST_SPEC ["description" ]:
1038
1039
raise unittest .SkipTest ("MMAPv1 does not support retryWrites=True" )
1039
1040
1041
+ # Speed up the tests by decreasing the heartbeat frequency.
1042
+ cls .knobs = client_knobs (
1043
+ heartbeat_frequency = 0.1 ,
1044
+ min_heartbeat_interval = 0.1 ,
1045
+ kill_cursor_frequency = 0.1 ,
1046
+ events_queue_frequency = 0.1 ,
1047
+ )
1048
+ cls .knobs .enable ()
1049
+
1040
1050
@classmethod
1041
1051
def tearDownClass (cls ):
1052
+ cls .knobs .disable ()
1042
1053
for client in cls .mongos_clients :
1043
1054
client .close ()
1044
1055
super ().tearDownClass ()
You can’t perform that action at this time.
0 commit comments