Skip to content

Commit

Permalink
add more output to flaky tests
Browse files Browse the repository at this point in the history
WTF is going on here
  • Loading branch information
dktapps committed Feb 5, 2024
1 parent 0309993 commit 4830192
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/workers-no-submit-after-run-crash.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ $w->synchronized(function() use ($w) : void{
}
});

echo "stacking next task" . PHP_EOL;
try{
$w->stack(new class extends \pmmp\thread\Runnable{
public function run() : void{
Expand All @@ -28,6 +29,7 @@ try{
}
?>
--EXPECTF--
stacking next task
Fatal error: Uncaught Exception in %s:%d
Stack trace:
#0 [internal function]: pmmp\thread\Worker@anonymous->run()
Expand Down
2 changes: 2 additions & 0 deletions tests/workers-no-submit-after-task-crash.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ $w->synchronized(function() use ($w) : void{
$w->wait();
}
});
echo "stacking next task" . PHP_EOL;

try{
$w->stack(new class extends \pmmp\thread\Runnable{
Expand All @@ -27,6 +28,7 @@ try{
}
?>
--EXPECTF--
stacking next task
Fatal error: Uncaught Exception in %s:%d
Stack trace:
#0 [internal function]: pmmp\thread\Runnable@anonymous->run()
Expand Down

0 comments on commit 4830192

Please sign in to comment.