Skip to content

Commit fc47d6c

Browse files
committed
Skip platform-specific (Linux) tests on other platforms (Mac OS X)
1 parent 341a59f commit fc47d6c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/FunctionalSecureServerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ public function testEmitsErrorForConnectionWithPeerVerification()
326326

327327
public function testEmitsErrorIfConnectionIsCancelled()
328328
{
329+
if (PHP_OS !== 'Linux') {
330+
$this->markTestSkipped('Linux only (OS is ' . PHP_OS . ')');
331+
}
332+
329333
$loop = Factory::create();
330334

331335
$server = new TcpServer(0, $loop);

tests/FunctionalTcpServerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ public function testEmitsConnectionWithRemoteNullAddressAfterConnectionIsClosedL
165165

166166
public function testEmitsConnectionEvenIfConnectionIsCancelled()
167167
{
168+
if (PHP_OS !== 'Linux') {
169+
$this->markTestSkipped('Linux only (OS is ' . PHP_OS . ')');
170+
}
171+
168172
$loop = Factory::create();
169173

170174
$server = new TcpServer(0, $loop);

0 commit comments

Comments
 (0)