Skip to content

Commit 9be3df7

Browse files
committed
ci: debug failing test
1 parent b25cb13 commit 9be3df7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/process/tests/PoolTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function test_pool(): void
3232

3333
$results = $invoked->wait();
3434

35-
$this->assertCount(2, $results);
35+
var_dump($results, $results->count());
36+
$this->assertSame(2, $results->count());
3637
$this->assertStringEqualsStringIgnoringLineEndings("hello\n", $results[0]->output);
3738
$this->assertStringEqualsStringIgnoringLineEndings("world\n", $results[1]->output);
3839
}
@@ -45,8 +46,8 @@ public function test_concurrently(): void
4546
'echo world',
4647
]);
4748

48-
var_dump($results);
49-
$this->assertCount(2, $results);
49+
var_dump($results, $results->count());
50+
$this->assertSame(2, $results->count());
5051
$this->assertStringEqualsStringIgnoringLineEndings("hello\n", $results[0]->output);
5152
$this->assertStringEqualsStringIgnoringLineEndings("world\n", $results[1]->output);
5253
}

0 commit comments

Comments
 (0)