mirror of https://github.com/sbt/sbt.git
Merge pull request #4233 from eed3si9n/wip/servertest3
Increase the timeout to 90s
This commit is contained in:
commit
cd0142ef51
|
|
@ -87,10 +87,13 @@ case class TestServer(baseDirectory: File) {
|
||||||
if (n <= 0) sys.error(s"Timeout. $portfile is not found.")
|
if (n <= 0) sys.error(s"Timeout. $portfile is not found.")
|
||||||
else {
|
else {
|
||||||
Thread.sleep(1000)
|
Thread.sleep(1000)
|
||||||
|
if ((n - 1) % 10 == 0) {
|
||||||
|
hostLog("waiting for the server...")
|
||||||
|
}
|
||||||
waitForPortfile(n - 1)
|
waitForPortfile(n - 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
waitForPortfile(30)
|
waitForPortfile(90)
|
||||||
|
|
||||||
// make connection to the socket described in the portfile
|
// make connection to the socket described in the portfile
|
||||||
val (sk, tkn) = ClientSocket.socket(portfile)
|
val (sk, tkn) = ClientSocket.socket(portfile)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue