add timeout before adding signalfile to prevent graphic view segfaults

This commit is contained in:
Johannes Pohl
2017-03-27 19:27:32 +02:00
parent a05f181657
commit 7d893e0bbd

View File

@@ -31,6 +31,8 @@ class QtTestCase(unittest.TestCase):
self.form = MainController()
def add_signal_to_form(self, filename: str):
QApplication.instance().processEvents()
QTest.qWait(1)
self.form.add_signalfile(get_path_for_data_file(filename))
def tearDown(self):