From 92a1bc3bde5de3c070ff506bd14770f2a92ef5d4 Mon Sep 17 00:00:00 2001 From: cpascual Date: Mon, 22 May 2017 08:50:34 +0200 Subject: [PATCH] Try again to work around race conditions in test suite The automated tests are failing again lately, being the bgRole tests the most likely to randomly fail. Increase processEvents repetitions for bgRole test in an attempt to reduce the likelihood of these false failures. --- lib/taurus/qt/qtgui/display/test/test_tauruslabel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/taurus/qt/qtgui/display/test/test_tauruslabel.py b/lib/taurus/qt/qtgui/display/test/test_tauruslabel.py index e462a3ba8..747b74592 100644 --- a/lib/taurus/qt/qtgui/display/test/test_tauruslabel.py +++ b/lib/taurus/qt/qtgui/display/test/test_tauruslabel.py @@ -160,7 +160,7 @@ def text(self, model=None, expected=None, fgRole=None, maxdepr=0): def bgRole(self, model=None, expected=None, bgRole=None, maxdepr=0): '''Check that the label text''' self._widget.setModel(model) - self.processEvents(repetitions=10, sleep=.1) + self.processEvents(repetitions=30, sleep=.1) if bgRole is not None: self._widget.setBgRole(bgRole) p = self._widget.palette()