Increase the timeout to 90s

Sometimes 30s is not enough.
This commit is contained in:
Eugene Yokota 2018-06-27 07:44:34 -04:00
parent 58cb9b2383
commit 76aa729960
1 changed files with 4 additions and 1 deletions

View File

@ -87,10 +87,13 @@ case class TestServer(baseDirectory: File) {
if (n <= 0) sys.error(s"Timeout. $portfile is not found.")
else {
Thread.sleep(1000)
if ((n - 1) % 10 == 0) {
hostLog("waiting for the server...")
}
waitForPortfile(n - 1)
}
}
waitForPortfile(30)
waitForPortfile(90)
// make connection to the socket described in the portfile
val (sk, tkn) = ClientSocket.socket(portfile)