Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Feb 14, 2024
1 parent 6df79be commit bb7ad1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ package algoliasearch.config
* @param port
* Host port
*/
case class Host(url: String, callTypes: Set[CallType], scheme: String = "https", port : Option[Int] = None)
case class Host(url: String, callTypes: Set[CallType], scheme: String = "https", port: Option[Int] = None)
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private[algoliasearch] class RetryStrategy(hosts: List[StatefulHost]) extends In
urlBuilder.port(host.getPort.get)
}
val newUrl = urlBuilder.build()

val newRequest = request.newBuilder().url(newUrl).build()
chain.withConnectTimeout(
chain.connectTimeoutMillis() * (host.getRetryCount + 1),
Expand Down
8 changes: 4 additions & 4 deletions templates/php/tests/client/suite.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ class {{clientPrefix}}Test extends TestCase implements HttpClientInterface
$this->recordedRequest['responseTimeout']
);
{{/testTimeouts}}
{{#testResult}}
{{#testResponse}}
$this->assertEquals(
'{{{match}}}',
json_encode($result)
'{{{match.parameters}}}',
json_encode($res)
);
{{/testResult}}
{{/testResponse}}
{{/match}}
{{/isError}}
{{/steps}}
Expand Down

0 comments on commit bb7ad1f

Please sign in to comment.