Skip to content

Commit

Permalink
Merge pull request #618 from magento-troll/MAGETWO-61132
Browse files Browse the repository at this point in the history
MAGETWO-61132: Integration test Magento\Directory\Model\ObserverTest fails due to 3rd party service outage
  • Loading branch information
rganin authored Nov 25, 2016
2 parents b241a65 + 84f93ad commit 4bc9fcc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ public function testScheduledUpdateCurrencyRates()
{
//skipping test if service is unavailable
$url = str_replace('{{CURRENCY_FROM}}', 'USD',
\Magento\Directory\Model\Currency\Import\Webservicex::CURRENCY_CONVERTER_URL
\Magento\Directory\Model\Currency\Import\Webservicex::CURRENCY_CONVERTER_URL
);
$url = str_replace('{{CURRENCY_TO}}', 'GBP', $url);
try {
file_get_contents($url);
} catch (\PHPUnit_Framework_Error_Warning $e) {
} catch (\PHPUnit_Framework_Exception $e) {
$this->markTestSkipped('http://www.webservicex.net is unavailable ');
}

Expand Down

0 comments on commit 4bc9fcc

Please sign in to comment.