Blame redis-tests.patch

9f155bf
From 627bd89b45ba09b689e692a23370e5d82d9829a1 Mon Sep 17 00:00:00 2001
9f155bf
From: Remi Collet <remi@remirepo.net>
9f155bf
Date: Thu, 8 Feb 2018 05:47:28 +0100
9f155bf
Subject: [PATCH] skip online test
9f155bf
9f155bf
---
9f155bf
 tests/RedisTest.php | 6 +++++-
9f155bf
 1 file changed, 5 insertions(+), 1 deletion(-)
9f155bf
9f155bf
diff --git a/tests/RedisTest.php b/tests/RedisTest.php
9f155bf
index 4c0b7884..4d807a78 100644
9f155bf
--- a/tests/RedisTest.php
9f155bf
+++ b/tests/RedisTest.php
9f155bf
@@ -5164,9 +5164,13 @@ public function testMultipleConnect() {
9f155bf
     }
9f155bf
 
9f155bf
     public function testConnectException() {
9f155bf
+        $host = 'github.com';
9f155bf
+        if (gethostbyname($host) === $host) {
9f155bf
+            return $this->markTestSkipped('online test');
9f155bf
+        }
9f155bf
         $redis = new Redis();
9f155bf
         try {
9f155bf
-            $redis->connect('github.com', 6379, 0.01);
9f155bf
+            $redis->connect($host, 6379, 0.01);
9f155bf
         }  catch (Exception $e) {
9f155bf
             $this->assertTrue(strpos($e, "timed out") !== false);
9f155bf
         }