Skip to content

Commit c5bcace

Browse files
author
Viktor Tymchynskyi
committed
Merge remote-tracking branch 'magento2/develop' into MAGETWO-32923
2 parents 4d3a7be + 19aea0f commit c5bcace

File tree

1 file changed

+6
-0
lines changed
  • dev/tests/api-functional/framework/Magento/TestFramework/Authentication/Rest

1 file changed

+6
-0
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/Authentication/Rest/OauthClient.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
*/
2525
class OauthClient extends AbstractService
2626
{
27+
/**
28+
* The maximum timeout for http request in seconds
29+
*/
30+
const DEFAULT_TIMEOUT = 120;
31+
2732
/** @var string|null */
2833
protected $_oauthVerifier = null;
2934

@@ -36,6 +41,7 @@ public function __construct(
3641
) {
3742
if (!isset($httpClient)) {
3843
$httpClient = new \OAuth\Common\Http\Client\StreamClient();
44+
$httpClient->setTimeout(self::DEFAULT_TIMEOUT);
3945
}
4046
if (!isset($storage)) {
4147
$storage = new \OAuth\Common\Storage\Session();

0 commit comments

Comments
 (0)