Skip to content

Commit 4bc9fcc

Browse files
authored
Merge pull request #618 from magento-troll/MAGETWO-61132
MAGETWO-61132: Integration test Magento\Directory\Model\ObserverTest fails due to 3rd party service outage
2 parents b241a65 + 84f93ad commit 4bc9fcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/integration/testsuite/Magento/Directory/Model/ObserverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ public function testScheduledUpdateCurrencyRates()
6262
{
6363
//skipping test if service is unavailable
6464
$url = str_replace('{{CURRENCY_FROM}}', 'USD',
65-
\Magento\Directory\Model\Currency\Import\Webservicex::CURRENCY_CONVERTER_URL
65+
\Magento\Directory\Model\Currency\Import\Webservicex::CURRENCY_CONVERTER_URL
6666
);
6767
$url = str_replace('{{CURRENCY_TO}}', 'GBP', $url);
6868
try {
6969
file_get_contents($url);
70-
} catch (\PHPUnit_Framework_Error_Warning $e) {
70+
} catch (\PHPUnit_Framework_Exception $e) {
7171
$this->markTestSkipped('http://www.webservicex.net is unavailable ');
7272
}
7373

0 commit comments

Comments
 (0)