[tests] Use new utility method to skip PUB/SUB tests on CI.

This commit is contained in:
Daniele Alessandri
2020-09-03 12:21:35 +02:00
parent 5133706c36
commit f723f67c3f
+6 -10
View File
@@ -364,11 +364,9 @@ class ConsumerTest extends PredisTestCase
*/ */
public function testPubSubAgainstRedisServer(): void public function testPubSubAgainstRedisServer(): void
{ {
if (getenv('GITHUB_ACTIONS') || getenv('TRAVIS')) { $this->markTestSkippedOnCIEnvironment(
$this->markTestSkipped( 'Test temporarily skipped on CI environments, see note in the body of the test' // TODO
'Test temporarily skipped on CI environments, see note in the body of the test' );
);
}
$parameters = array( $parameters = array(
'host' => constant('REDIS_SERVER_HOST'), 'host' => constant('REDIS_SERVER_HOST'),
@@ -415,11 +413,9 @@ class ConsumerTest extends PredisTestCase
*/ */
public function testPubSubAgainstRedisServerBlocking(): void public function testPubSubAgainstRedisServerBlocking(): void
{ {
if (getenv('GITHUB_ACTIONS') || getenv('TRAVIS')) { $this->markTestSkippedOnCIEnvironment(
$this->markTestSkipped( 'Test temporarily skipped on CI environments, see note in the body of the test' // TODO
'Test temporarily skipped on CI environments, see note in the body of the test' );
);
}
$parameters = array( $parameters = array(
'host' => constant('REDIS_SERVER_HOST'), 'host' => constant('REDIS_SERVER_HOST'),