Skip to content

Commit

Permalink
Increase LeoRoutesSpec timeout (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtitle authored Apr 9, 2018
1 parent 9828b40 commit e4a4bb7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package org.broadinstitute.dsde.workbench.leonardo.api

import akka.http.scaladsl.model.StatusCodes
import akka.http.scaladsl.model.headers.OAuth2BearerToken
import akka.http.scaladsl.testkit.ScalatestRouteTest
import akka.http.scaladsl.testkit.{RouteTestTimeout, ScalatestRouteTest}
import akka.testkit.TestDuration
import org.broadinstitute.dsde.workbench.model.UserInfo
import org.broadinstitute.dsde.workbench.leonardo.db.TestComponent
import org.broadinstitute.dsde.workbench.leonardo.model.LeonardoJsonSupport._
Expand All @@ -11,10 +12,14 @@ import org.broadinstitute.dsde.workbench.leonardo.model.google._
import org.broadinstitute.dsde.workbench.model.google._
import org.broadinstitute.dsde.workbench.model.{WorkbenchEmail, WorkbenchUserId}
import org.scalatest.{FlatSpec, Matchers}
import scala.concurrent.duration._
import spray.json._

class LeoRoutesSpec extends FlatSpec with Matchers with ScalatestRouteTest with TestLeoRoutes with TestComponent {

// https://doc.akka.io/docs/akka-http/current/routing-dsl/testkit.html#increase-timeout
implicit val timeout = RouteTestTimeout(5.seconds dilated)

private val googleProject = GoogleProject("test-project")
private val clusterName = ClusterName("test-cluster")

Expand Down

0 comments on commit e4a4bb7

Please sign in to comment.