Skip to content

Commit 627bd89

Browse files
committed
skip online test
1 parent 9cd0591 commit 627bd89

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/RedisTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5164,9 +5164,13 @@ public function testMultipleConnect() {
51645164
}
51655165

51665166
public function testConnectException() {
5167+
$host = 'github.com';
5168+
if (gethostbyname($host) === $host) {
5169+
return $this->markTestSkipped('online test');
5170+
}
51675171
$redis = new Redis();
51685172
try {
5169-
$redis->connect('github.com', 6379, 0.01);
5173+
$redis->connect($host, 6379, 0.01);
51705174
} catch (Exception $e) {
51715175
$this->assertTrue(strpos($e, "timed out") !== false);
51725176
}

0 commit comments

Comments
 (0)