Add basic test for creating a thread

This commit is contained in:
Joey Yakimowich-Payne 2018-07-13 09:18:09 +09:00
commit b650a9f401
4 changed files with 95 additions and 16 deletions

View file

@ -44,6 +44,7 @@ template withBackend(body: untyped): untyped =
body
import browsertests/scenario1
import browsertests/threads
when isMainModule:
spawn runProcess("geckodriver -p 4444 --log config")
@ -63,8 +64,9 @@ when isMainModule:
withBackend:
scenario1.test(session, baseUrl)
threads.test(session, baseUrl)
session.close()
except:
sleep(10000) # See if we can grab any more output.
raise
raise