From 885ac4c8c5016537fac7f14a124a14c82a1a167e Mon Sep 17 00:00:00 2001
From: Karel van Klink <karel.vanklink@geant.org>
Date: Thu, 1 Jun 2023 14:23:45 +0200
Subject: [PATCH] reintroduce a time.sleep() that was necessary

---
 test/routes/test_ip_trunk.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/routes/test_ip_trunk.py b/test/routes/test_ip_trunk.py
index ef117a4..76b24db 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)
-- 
GitLab