forked from qt-creator/qt-creator
Squish: Stabilize progressBarWait()
Change-Id: I9511317f8389963e5c98230d6885311a84c2dc25 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -643,7 +643,9 @@ def checkIfObjectExists(name, shouldExist = True, timeout = 3000, verboseOnFail
|
||||
|
||||
# wait for progress bar(s) to appear and disappear
|
||||
def progressBarWait(timeout=60000):
|
||||
checkIfObjectExists(":Qt Creator_Core::Internal::ProgressBar", True, 2000)
|
||||
if not checkIfObjectExists(":Qt Creator_Core::Internal::ProgressBar", True, 6000):
|
||||
test.warning("progressBarWait() timed out when waiting for ProgressBar.",
|
||||
"This may lead to unforeseen behavior. Consider increasing the timeout.")
|
||||
checkIfObjectExists(":Qt Creator_Core::Internal::ProgressBar", False, timeout)
|
||||
|
||||
def readFile(filename):
|
||||
|
||||
Reference in New Issue
Block a user