Skip to content
Snippets Groups Projects

reintroduce a time.sleep() that was necessary

Merged Karel van Klink requested to merge feature/fix-tests into develop
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
@@ -115,6 +115,8 @@ def test_ip_trunk_provisioning(client):
@@ -115,6 +115,8 @@ def test_ip_trunk_provisioning(client):
rv = client.post('/api/ip_trunk/', json=params)
rv = client.post('/api/ip_trunk/', json=params)
assert rv.status_code == 200
assert rv.status_code == 200
response = rv.json()
response = rv.json()
 
# wait a second for the run thread to finish
 
time.sleep(1)
jsonschema.validate(response, PlaybookLaunchResponse.schema())
jsonschema.validate(response, PlaybookLaunchResponse.schema())
responses.assert_call_count(TEST_CALLBACK_URL, 1)
responses.assert_call_count(TEST_CALLBACK_URL, 1)
Loading