Skip to content

Commit

Permalink
improve unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Mar 29, 2019
1 parent 94f1f12 commit f7f91b0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_simulator_tab_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,7 @@ def test_open_simulator_dialog_and_send_mismatching_message(self):
logger.debug("Waiting for mismatching message")
time.sleep(1)

QTest.qWait(250)
QApplication.processEvents()
QTest.qWait(100)

dialog.on_timer_timeout() # enforce writing to text view
simulator_log = dialog.ui.textEditSimulation.toPlainText()
self.assertIn("Received message 1", simulator_log)
self.assertIn("preamble: 11111111", simulator_log)
Expand Down

0 comments on commit f7f91b0

Please sign in to comment.