Skip to content

Commit

Permalink
Fix new line on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Feb 5, 2024
1 parent 7625d07 commit bb386a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Renderer/RendererQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ public function __construct(

public function render(SlowTestCollection $collection, ?Info $telemetryInfo = null): string
{
$buffer = '';
$buffer = [];

if ($this->monitor) {
$buffer = $this->configuredRender->render($collection, $telemetryInfo);
$buffer[] = $this->configuredRender->render($collection, $telemetryInfo);
}

if ($this->monitorForGa && $this->ciRenderer->runningInCi()) {
$buffer .= $this->ciRenderer->render($collection, $telemetryInfo);
$buffer[] = $this->ciRenderer->render($collection, $telemetryInfo);
}

return $buffer;
return implode("\n", $buffer);
}
}
2 changes: 1 addition & 1 deletion tests/unit/Renderer/RendererQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class RendererQueueTest extends TestCase
{
private const CONFIGURED_RENDERER_OUTPUT = "<configured-renderer-output>\n";
private const CI_RENDERER_OUTPUT = "<ci-renderer-output>\n";
private const COMBINED_RENDERER_OUTPUT = self::CONFIGURED_RENDERER_OUTPUT.self::CI_RENDERER_OUTPUT;
private const COMBINED_RENDERER_OUTPUT = self::CONFIGURED_RENDERER_OUTPUT."\n".self::CI_RENDERER_OUTPUT;

/**
* @return iterable<string, array{0: bool, 1: bool, 2: bool, 3: string}>
Expand Down

0 comments on commit bb386a1

Please sign in to comment.