Skip to content

Commit 1ca5963

Browse files
committed
Rollback to .5 seconds gap between calls
1 parent 4fb08af commit 1ca5963

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/ShopifySDK.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ public static function config($config)
221221
self::setAdminUrl();
222222
}
223223

224+
//If want to keep more wait time than .5 seconds for each call
224225
if (isset($config['AllowedTimePerCall'])) {
225226
static::$timeAllowedForEachApiCall = $config['AllowedTimePerCall'];
226227
}

tests/TestResource.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public static function setUpBeforeClass()
2323
'ShopUrl' => 'phpclassic.myshopify.com',
2424
'ApiKey' => '81781200c08b31208031f983ab930f2a',
2525
'Password' => '5260904f8293bce93ddd4d65c535faa4',
26-
'AllowedTimePerCall' => 1, //2 test builds run at the same time, so keep 1 sec gap instead of .5 sec.
2726
);
2827

2928
self::$shopify = ShopifySDK::config($config);

tests/WebhookTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ class WebhookTest extends TestSimpleResource
1515
*/
1616
public $postArray = array(
1717
"topic" => "orders/create",
18-
"address" => "http://whatever.hostname.com/",
18+
"address" => "http://whatever.phpclassic.com/",
1919
"format" => "json"
2020
);
2121

2222
/**
2323
* @inheritDoc
2424
*/
2525
public $putArray = array(
26-
"address" => "http://whatsoever.hostname.com/",
26+
"address" => "http://whatsoever.phpclassic.com/",
2727
);
2828
}

0 commit comments

Comments
 (0)