From 7f0303f0efb0faf59420a1107064bf049e97d4ac Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Tue, 16 Jul 2019 15:16:07 +0200 Subject: [PATCH] remove test for started_callback function in Test_ModuleMeta this test seems not to work always properly, as it uses threads. anyway, the test depends on the inner functionality of the poller, which might be replaced soon Change-Id: I64f54046bfd1a8c70f8a9f20d518ab2f9967c33b Reviewed-on: https://forge.frm2.tum.de/review/20921 Tested-by: JenkinsCodeReview Reviewed-by: Enrico Faulhaber Reviewed-by: Markus Zolliker --- test/test_modules.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/test_modules.py b/test/test_modules.py index c63e16e..a6d0eaf 100644 --- a/test/test_modules.py +++ b/test/test_modules.py @@ -143,17 +143,3 @@ def test_ModuleMeta(): o.earlyInit() for o in objects: o.initModule() - - for o in objects: - event = threading.Event() - event2 = threading.Event() - def started_callback(event=event, event2=event2): - if event.is_set(): - event2.set() - else: - event.set() - raise Exception("end test") # this will kill the polling thread on the second call - - o.startModule(started_callback) - assert event2.wait(timeout=1) - assert event.is_set()