Skip to content

Commit f7e3d58

Browse files
committed
Better naming
1 parent de23e5b commit f7e3d58

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/tests_app/cli/test_cmd_clusters.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_happy_path(self, target_state, previous_state):
113113
for state in [previous_state, target_state]
114114
]
115115
)
116-
cmd_clusters._wait_for_cluster_state(client, "test-cluster", target_state, check_timeout=0.1)
116+
cmd_clusters._wait_for_cluster_state(client, "test-cluster", target_state, poll_duration=0.1)
117117
assert client.list_call_count == 2
118118

119119
@pytest.mark.parametrize("target_state", [V1ClusterState.RUNNING, V1ClusterState.DELETED])
@@ -129,9 +129,7 @@ def test_times_out(self, target_state):
129129
consume=False,
130130
)
131131
with pytest.raises(click.ClickException) as e:
132-
cmd_clusters._wait_for_cluster_state(
133-
client, "test-cluster", target_state, max_wait_time=0.4, check_timeout=0.2
134-
)
132+
cmd_clusters._wait_for_cluster_state(client, "test-cluster", target_state, timeout=0.4, poll_duration=0.2)
135133
assert "Max wait time elapsed" in str(e.value)
136134

137135
@mock.patch("click.echo")
@@ -165,8 +163,8 @@ def test_echo_state_change_on_desired_running(self, echo: MagicMock):
165163
client,
166164
"test-cluster",
167165
target_state=V1ClusterState.RUNNING,
168-
max_wait_time=0.6,
169-
check_timeout=0.1,
166+
timeout=0.6,
167+
poll_duration=0.1,
170168
)
171169

172170
assert client.list_call_count == 7
@@ -229,8 +227,8 @@ def test_echo_state_change_on_desired_deleted(self, echo: MagicMock):
229227
client,
230228
"test-cluster",
231229
target_state=V1ClusterState.DELETED,
232-
max_wait_time=0.4,
233-
check_timeout=0.1,
230+
timeout=0.4,
231+
poll_duration=0.1,
234232
)
235233

236234
assert client.list_call_count == 4

0 commit comments

Comments
 (0)