Skip to content

Commit

Permalink
Mark testWriteFailure as incomplete on GitLab - chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Jun 10, 2021
1 parent b3c05bc commit b3fbf42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ public function testFlushFailure()

public function testWriteFailure()
{
if (\getenv('GITLAB_CI')) {
$this->markTestIncomplete();
}
$this->assertTrue($this->logger->critical('foo'));
\chmod($this->directory . \date('Y-m-d') . '.log', 0444);
$this->assertFalse($this->logger->critical('foo'));
Expand Down

0 comments on commit b3fbf42

Please sign in to comment.