Skip to content

Commit c239138

Browse files
freekmurzeclaude
andcommitted
Add skipOnGitHubActions to tests that perform real pings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 34d996d commit c239138

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/PingCheckerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@
472472
expect($result)->toBeInstanceOf(PingResult::class);
473473
expect($result->isSuccess())->toBeTrue();
474474
expect($result->ipVersion())->toBe(\Spatie\Ping\Enums\IpVersion::IPv4);
475-
});
475+
})->skipOnGitHubActions();
476476

477477
it('can force IPv6', function () {
478478
$checker = (new Ping('google.com'))
@@ -489,7 +489,7 @@
489489
$checker = new Ping('example.com');
490490

491491
expect($checker->run()->ipVersion())->toBe(\Spatie\Ping\Enums\IpVersion::IPv4);
492-
});
492+
})->skipOnGitHubActions();
493493

494494
it('includes ip_version in toArray output', function () {
495495
$checker = new Ping('8.8.8.8');
@@ -499,7 +499,7 @@
499499

500500
expect($array['options'])->toHaveKey('ip_version');
501501
expect($array['options']['ip_version'])->toBe('ipv4');
502-
});
502+
})->skipOnGitHubActions();
503503

504504
it('can create PingResult from toArray with ip_version', function () {
505505
$originalData = [

0 commit comments

Comments
 (0)