Skip to content

Commit 616d069

Browse files
committed
Extract reading of result separated from value validation in test_execute_command_against_correct_db_and_closed_circuit
1 parent 82a6f27 commit 616d069

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_multidb/test_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_execute_command_against_correct_db_on_successful_initialization(
5454
assert mock_db1.circuit.state == CBState.CLOSED
5555
assert mock_db2.circuit.state == CBState.CLOSED
5656

57+
# @pytest.mark.repeat(600)
5758
@pytest.mark.parametrize(
5859
"mock_multi_db_config,mock_db, mock_db1, mock_db2",
5960
[
@@ -91,7 +92,8 @@ def test_execute_command_against_correct_db_and_closed_circuit(
9192

9293
client = MultiDBClient(mock_multi_db_config)
9394
assert mock_multi_db_config.failover_strategy.set_databases.call_count == 1
94-
assert client.set("key", "value") == "OK1"
95+
result = client.set("key", "value")
96+
assert result == "OK1"
9597
assert mock_hc.check_health.call_count == 7
9698

9799
assert mock_db.circuit.state == CBState.CLOSED

0 commit comments

Comments
 (0)