Skip to content

Commit c8253f3

Browse files
authored
test: reduce poll_interval during tests (#257)
This speeds up the few action tests that run wait_until_finished. Reduce time from ~5.8s to ~1.7s
1 parent 66f9163 commit c8253f3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/unit/actions/test_client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111
class TestBoundAction:
1212
@pytest.fixture()
1313
def bound_running_action(self, mocked_requests):
14+
action_client = ActionsClient(client=mocked_requests)
15+
# Speed up tests that run `wait_until_finished`
16+
action_client._client.poll_interval = 0.1
17+
1418
return BoundAction(
15-
client=ActionsClient(client=mocked_requests),
19+
client=action_client,
1620
data=dict(id=14, status=Action.STATUS_RUNNING),
1721
)
1822

0 commit comments

Comments
 (0)