File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ def changed_event(event):
134
134
@client_context .require_failCommand_appName
135
135
def test_monitor_waits_after_server_check_error (self ):
136
136
fail_ismaster = {
137
- 'mode' : {'times' : 10 },
137
+ 'mode' : {'times' : 5 },
138
138
'data' : {
139
139
'failCommands' : ['isMaster' ],
140
140
'errorCode' : 1234 ,
@@ -145,13 +145,13 @@ def test_monitor_waits_after_server_check_error(self):
145
145
start = time .time ()
146
146
client = single_client (
147
147
appName = 'SDAMMinHeartbeatFrequencyTest' ,
148
- serverSelectionTimeoutMS = 10000 )
148
+ serverSelectionTimeoutMS = 5000 )
149
149
self .addCleanup (client .close )
150
150
# Force a connection.
151
151
client .admin .command ('ping' )
152
152
duration = time .time () - start
153
- self .assertGreaterEqual (duration , 4.5 )
154
- self .assertLessEqual (duration , 6 .5 )
153
+ self .assertGreaterEqual (duration , 2 )
154
+ self .assertLessEqual (duration , 3 .5 )
155
155
156
156
@client_context .require_failCommand_appName
157
157
def test_heartbeat_awaited_flag (self ):
You can’t perform that action at this time.
0 commit comments