Skip to content

Commit f4b76e5

Browse files
committed
Fix ServletTimeoutTest
1 parent d7b2364 commit f4b76e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rest/.jvm/src/test/scala/io/udash/rest/SttpRestCallTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ServletTimeoutTest extends SttpClientRestTest {
4848
proxy.neverGet
4949
.failed
5050
.map { exception =>
51-
assert(exception == HttpErrorException.plain(500, "server operation timed out after 500 milliseconds"))
51+
assert(exception == HttpErrorException.plain(500, s"server operation timed out after $serverTimeout"))
5252
}
5353
}
5454

rest/src/test/scala/io/udash/rest/RestTestApi.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ object RestTestApi extends DefaultRestApiCompanion[RestTestApi] {
187187
counter.increment()
188188
Future.never
189189
}
190-
def wait(millis: Int): Future[String] = FutureUtils.delayedResult(millis.millis)(s"waited $millis ms").andThenNow(println(_))
190+
def wait(millis: Int): Future[String] = FutureUtils.delayedResult(millis.millis)(s"waited $millis ms")
191191
def getEntity(id: RestEntityId): Future[RestEntity] = Future.successful(RestEntity(id, s"${id.value}-name"))
192192
def complexGet(p1: Int, p2: String, h1: Int, h2: String, q1: Int, q2: String, q3: Opt[Int], c1: Int, c2: String): Future[RestEntity] =
193193
Future.successful(RestEntity(RestEntityId(s"$p1-$h1-$q1-$c1"), s"$p2-$h2-$q2-${q3.getOrElse(".")}-$c2"))

0 commit comments

Comments
 (0)