From 76aa7299606aff3d45cf897b84e2adab9842de1d Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Wed, 27 Jun 2018 07:44:34 -0400 Subject: [PATCH] Increase the timeout to 90s Sometimes 30s is not enough. --- sbt/src/test/scala/testpkg/ServerSpec.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sbt/src/test/scala/testpkg/ServerSpec.scala b/sbt/src/test/scala/testpkg/ServerSpec.scala index 303e0c630..ccd753595 100644 --- a/sbt/src/test/scala/testpkg/ServerSpec.scala +++ b/sbt/src/test/scala/testpkg/ServerSpec.scala @@ -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)