Skip to content

Commit

Permalink
Merge pull request #276 from georgejecook/bugfix/async-tests-waiting-…
Browse files Browse the repository at this point in the history
…full-timeout

Fixed async tests sometimes waiting the full timeout even though the …
  • Loading branch information
chrisdp authored Feb 13, 2024
2 parents 7265306 + 7d7f10d commit f462b5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion framework/src/source/TestRunner.bs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,13 @@ namespace rooibos
timeout = testSuite.asyncTimeout = invalid ? 60000 : testSuite.asyncTimeout

? "Waiting max " timeout "ms for the test suite to finish"
m.waitForField(node, "rooibosSuiteFinished", 10, timeout / 10)
t = createObject("roTimespan")
while node.rooibosSuiteFinished = false
m.wait(10)
if t.totalMilliseconds() >= timeout
exit while
end if
end while
end if
end if
nodeResults = node.asyncRooibosTestResult
Expand Down

0 comments on commit f462b5d

Please sign in to comment.