mirror of https://github.com/sbt/sbt.git
Merge pull request #5286 from eatkins/server-spec-feedback
Improve ServerSpec feedback
This commit is contained in:
commit
f3638817db
|
|
@ -166,7 +166,7 @@ object TestServer {
|
||||||
val init =
|
val init =
|
||||||
Try {
|
Try {
|
||||||
testServer.waitForString(30.seconds) { s =>
|
testServer.waitForString(30.seconds) { s =>
|
||||||
println(s)
|
if (s.nonEmpty) println(s)
|
||||||
s contains """"message":"Done""""
|
s contains """"message":"Done""""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -292,7 +292,7 @@ case class TestServer(baseDirectory: File) {
|
||||||
val deadline = duration.fromNow
|
val deadline = duration.fromNow
|
||||||
@tailrec
|
@tailrec
|
||||||
def impl(): Boolean = {
|
def impl(): Boolean = {
|
||||||
if (deadline.isOverdue) false
|
if (deadline.isOverdue || !process.isAlive) false
|
||||||
else readFrame.fold(false)(f) || impl
|
else readFrame.fold(false)(f) || impl
|
||||||
}
|
}
|
||||||
impl()
|
impl()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue