From bc6bdfc99e0aa228ed3a265a1e89e1c9758e228f Mon Sep 17 00:00:00 2001
From: Martin Hierholzer <martin.hierholzer@desy.de>
Date: Tue, 21 Feb 2017 15:41:07 +0100
Subject: [PATCH] added some sleeps to make the test a bit harder

---
 tests/executables_src/testTestFacilities.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/executables_src/testTestFacilities.cc b/tests/executables_src/testTestFacilities.cc
index fd9dae16..7506fe59 100644
--- a/tests/executables_src/testTestFacilities.cc
+++ b/tests/executables_src/testTestFacilities.cc
@@ -83,6 +83,7 @@ struct BlockingReadTestModule : public ctk::ApplicationModule {
         someInput.read();
         T val = someInput;
         someOutput = val;
+        usleep(10000);  // wait some extra time to make sure we are really blocking the test procedure thread
         someOutput.write();
       }
     }
@@ -104,6 +105,7 @@ struct AsyncReadTestModule : public ctk::ApplicationModule {
         future.wait();
         T val = someInput;
         someOutput = val;
+        usleep(10000);  // wait some extra time to make sure we are really blocking the test procedure thread
         someOutput.write();
       }
     }
-- 
GitLab