Merge pull request #4233 from eed3si9n/wip/servertest3

Increase the timeout to 90s
This commit is contained in:
eugene yokota 2018-06-27 08:38:05 -04:00 committed by GitHub
commit cd0142ef51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)