Skip to content

Commit 19aea0f

Browse files
author
Paliarush, Alexander(apaliarush)
committed
Merge pull request #395 from magento-api/MAGETWO-39284-Failing-L1-Build-REST-EE
[API] Fix L1/REST EE build
2 parents d0e08a2 + 82c1bc7 commit 19aea0f

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)