diff --git a/tests/pthread_condition_variable/tests/01-run.py b/tests/pthread_condition_variable/tests/01-run.py index a6edbf2f72d9bbd1f639e053226ef49647bbfa39..4f0598a13a4a714a0b9ebf09553fa4ca396e5d54 100755 --- a/tests/pthread_condition_variable/tests/01-run.py +++ b/tests/pthread_condition_variable/tests/01-run.py @@ -4,6 +4,12 @@ import sys from testrunner import run +# This test can take some time to complete when testing on hardware (e.g +# on samr21-xpro) and the default timeout (10s) is not enough. +# For example, it takes about 2 minutes to complete on a microbit. +TIMEOUT = 150 + + def testfunc(child): child.expect('START') child.expect('condition fulfilled.') @@ -11,6 +17,4 @@ def testfunc(child): if __name__ == "__main__": - # This test can take some time to complete when testing on hardware (e.g - # on samr21-xpro) and the default timeout (10s) is not enough. - sys.exit(run(testfunc, timeout=60)) + sys.exit(run(testfunc, timeout=TIMEOUT))