Skip to content

Commit d28d2a3

Browse files
committed
Set higher timeouts as Jenkins is slow sometimes
Signed-off-by: Joern Bernhardt <jb@campudus.com>
1 parent eeb0e82 commit d28d2a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/scala/io/vertx/asyncsql/test/BaseSqlTests.scala

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import org.vertx.scala.core.FunctionConverters._
1111
trait BaseSqlTests {
1212
this: SqlTestVerticle =>
1313

14+
private val timeout: Int = 15000
15+
1416
protected def isMysql: Boolean = false
1517

1618
protected def failedTest: PartialFunction[Throwable, Unit] = {
@@ -21,7 +23,7 @@ trait BaseSqlTests {
2123

2224
private def sendWithTimeout(json: JsonObject): Future[(Message[JsonObject], JsonObject)] = {
2325
val p = Promise[(Message[JsonObject], JsonObject)]()
24-
vertx.eventBus.sendWithTimeout(address, json, 5000, {
26+
vertx.eventBus.sendWithTimeout(address, json, timeout, {
2527
case Success(reply) => p.success(reply, reply.body())
2628
case Failure(ex) => p.failure(ex)
2729
}: Try[Message[JsonObject]] => Unit)
@@ -30,7 +32,7 @@ trait BaseSqlTests {
3032

3133
private def replyWithTimeout(msg: Message[JsonObject], json: JsonObject): Future[(Message[JsonObject], JsonObject)] = {
3234
val p = Promise[(Message[JsonObject], JsonObject)]()
33-
msg.replyWithTimeout(json, 5000, {
35+
msg.replyWithTimeout(json, timeout, {
3436
case Success(reply) => p.success(reply, reply.body())
3537
case Failure(ex) => p.failure(ex)
3638
}: Try[Message[JsonObject]] => Unit)

0 commit comments

Comments
 (0)