Skip to content

Commit

Permalink
Improve test. skip access block test when not exists mmdb file.
Browse files Browse the repository at this point in the history
  • Loading branch information
uzulla committed Aug 9, 2021
1 parent 4500d87 commit 5f84720
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/App/Service/AccessBlockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ class AccessBlockTest extends TestCase
{
public function testAccessBlock(): void
{
if (!file_exists(AccessBlock::MMDB_FILE_PATH)) {
$this->markTestSkipped();
return;
}

$jp_ip_address = "133.0.0.1"; // Some JP address https://www.nic.ad.jp/ja/dns/jp-addr-block.html
$r = new Request(null, null, null, null, null, null, [
'REMOTE_ADDR' => $jp_ip_address
Expand Down

0 comments on commit 5f84720

Please sign in to comment.