File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
test_asyncio/test_multidb Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ async def test_execute_command_auto_fallback_to_highest_weight_db(
202
202
True ,
203
203
True ,
204
204
True ,
205
- True
205
+ True ,
206
206
]
207
207
208
208
with (
@@ -213,9 +213,9 @@ async def test_execute_command_auto_fallback_to_highest_weight_db(
213
213
return_value = [mock_hc ],
214
214
),
215
215
):
216
- mock_db .client .execute_command .return_value = 'OK'
217
- mock_db1 .client .execute_command .return_value = ' OK1'
218
- mock_db2 .client .execute_command .return_value = ' OK2'
216
+ mock_db .client .execute_command .return_value = "OK"
217
+ mock_db1 .client .execute_command .return_value = " OK1"
218
+ mock_db2 .client .execute_command .return_value = " OK2"
219
219
mock_multi_db_config .health_check_interval = 0.1
220
220
mock_multi_db_config .auto_fallback_interval = 0.2
221
221
mock_multi_db_config .failover_strategy = WeightBasedFailoverStrategy ()
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def test_execute_command_auto_fallback_to_highest_weight_db(
198
198
True ,
199
199
True ,
200
200
True ,
201
- True
201
+ True ,
202
202
]
203
203
204
204
with (
@@ -209,9 +209,9 @@ def test_execute_command_auto_fallback_to_highest_weight_db(
209
209
return_value = [mock_hc ],
210
210
),
211
211
):
212
- mock_db .client .execute_command .return_value = 'OK'
213
- mock_db1 .client .execute_command .return_value = ' OK1'
214
- mock_db2 .client .execute_command .return_value = ' OK2'
212
+ mock_db .client .execute_command .return_value = "OK"
213
+ mock_db1 .client .execute_command .return_value = " OK1"
214
+ mock_db2 .client .execute_command .return_value = " OK2"
215
215
mock_multi_db_config .health_check_interval = 0.1
216
216
mock_multi_db_config .auto_fallback_interval = 0.2
217
217
mock_multi_db_config .failover_strategy = WeightBasedFailoverStrategy ()
You can’t perform that action at this time.
0 commit comments