Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
Updated dependencies
  • Loading branch information
darkfrog26 committed Dec 27, 2018
1 parent 22ba270 commit 7e4df4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Expand Up @@ -37,9 +37,9 @@ val openTypeVersion = "0.7.3"
val picaVersion = "3.0.5" val picaVersion = "3.0.5"
val webFontLoaderVersion = "1.6.28" val webFontLoaderVersion = "1.6.28"


val akkaVersion = "2.5.17" val akkaVersion = "2.5.19"
val scalaJSDOM = "0.9.6" val scalaJSDOM = "0.9.6"
val okHttpVersion = "3.11.0" val okHttpVersion = "3.12.1"
val circeVersion = "0.10.1" val circeVersion = "0.10.1"
val uaDetectorVersion = "2014.10" val uaDetectorVersion = "2014.10"
val undertowVersion = "2.0.16.Final" val undertowVersion = "2.0.16.Final"
Expand Down
3 changes: 2 additions & 1 deletion client/jvm/src/test/scala/spec/HttpClientSpec.scala
Expand Up @@ -23,11 +23,12 @@ class HttpClientSpec extends AsyncWordSpec with Matchers {
"call a URL multiple times with a rate limiter" in { "call a URL multiple times with a rate limiter" in {
var calls = 0 var calls = 0
val limiter = Interceptor.rateLimited(1.seconds) val limiter = Interceptor.rateLimited(1.seconds)
val config = client.config.interceptor(limiter)


def callMultiple(counter: Int): Future[Unit] = { def callMultiple(counter: Int): Future[Unit] = {
client.send( client.send(
request = HttpRequest(url = url"https://httpbin.org/user-agent"), request = HttpRequest(url = url"https://httpbin.org/user-agent"),
interceptor = limiter config = config
).flatMap { response => ).flatMap { response =>
response.status should be(HttpStatus.OK) response.status should be(HttpStatus.OK)
calls += 1 calls += 1
Expand Down
File renamed without changes.

0 comments on commit 7e4df4f

Please sign in to comment.