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 <bjoern_pedersen@frm2.tum.de>
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
This commit is contained in:
zolliker 2019-07-16 15:16:07 +02:00 committed by Enrico Faulhaber
parent 41cf96f450
commit 7f0303f0ef

View File

@ -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()