diff --git a/test/routes/test_ip_trunk.py b/test/routes/test_ip_trunk.py index ef117a4213ce5909669a56605378eb588985eced..76b24db09e23d08b46a61ee685c0251859862ad8 100644 --- a/test/routes/test_ip_trunk.py +++ b/test/routes/test_ip_trunk.py @@ -115,6 +115,8 @@ def test_ip_trunk_provisioning(client): rv = client.post('/api/ip_trunk/', json=params) assert rv.status_code == 200 response = rv.json() + # wait a second for the run thread to finish + time.sleep(1) jsonschema.validate(response, PlaybookLaunchResponse.schema()) responses.assert_call_count(TEST_CALLBACK_URL, 1)