Skip to content
Snippets Groups Projects

Port init elements code

Merged Manon Blanco requested to merge init-element-worker into master
All threads resolved!
Files
2
+ 3
0
@@ -10,6 +10,8 @@ def test_activity_state_awaiting(mock_worker, monkeypatch):
"""
Init task must wait until the backend has initialized worker activities for this process
"""
mock_worker.process_information["activity_state"] = "pending"
sleep_args = iter([2, 4, 8])
def mock_sleep(seconds) -> None:
@@ -59,6 +61,7 @@ def test_activity_state_awaiting(mock_worker, monkeypatch):
],
)
assert not mock_worker.api_client.responses
def test_activity_state_timeout(mock_worker, caplog, monkeypatch):
"""
Loading