Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed May 28, 2024
1 parent e30e4db commit 85291b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Inspector/Command/BashCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function run(): CommandResponse
->setTimeout(null)
->run();

$processOutput = rtrim($process->getOutput(), PHP_EOL);
$processOutput = rtrim($process->getOutput());

if (!$process->getExitCode() > 1) {
return new CommandResponse(
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Inspector/Command/BashCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testSuccess(): void
$response = $command->run();

$this->assertSame(CommandResponse::STATUS_OK, $response->getStatus());
$this->assertSame('test' . PHP_EOL, $response->getResult());
$this->assertSame('test', $response->getResult());
$this->assertSame([], $response->getErrors());
}

Expand Down

0 comments on commit 85291b4

Please sign in to comment.