Skip to content

Commit

Permalink
Skip on any HTTP problems, like in Horde_Pgp.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 23, 2016
1 parent bacc461 commit 95f0a69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/Crypt/test/Horde/Crypt/PgpKeyserverTest.php
Expand Up @@ -40,7 +40,7 @@ public function testKeyserverRetrieve()
try {
$this->_ks->get('4DE5B969');
} catch (Horde_Crypt_Exception $e) {
if (strpos($e->getMessage(), 'Operation timed out') === 0) {
if ($e->getPrevious() instanceof Horde_Http_Exception) {
$this->markTestSkipped($e->getMessage());
} else {
throw $e;
Expand All @@ -56,7 +56,7 @@ public function testKeyserverRetrieveByEmail()
$this->_ks->getKeyID('jan@horde.org')
);
} catch (Horde_Crypt_Exception $e) {
if (strpos($e->getMessage(), 'Operation timed out') === 0) {
if ($e->getPrevious() instanceof Horde_Http_Exception) {
$this->markTestSkipped($e->getMessage());
} else {
throw $e;
Expand All @@ -78,7 +78,7 @@ public function testBrokenKeyserver()
$ks->getKeyID('jan@horde.org')
);
} catch (Horde_Crypt_Exception $e) {
if (strpos($e->getMessage(), 'Operation timed out') === 0) {
if ($e->getPrevious() instanceof Horde_Http_Exception) {
$this->markTestSkipped($e->getMessage());
} else {
throw $e;
Expand Down

0 comments on commit 95f0a69

Please sign in to comment.