Skip to content

Commit

Permalink
Adjust a couple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 27, 2023
1 parent 2a9c327 commit dfe0dd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Worker/AbstractPoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function testWaitingForAvailableWorker(): void
$delay = 0.1;

$this->setMinimumRuntime($delay * $count);
$this->setTimeout($delay * $count * 2);
$this->setTimeout($delay * $count * 3);

$pool = $this->createPool(1);

Expand Down
2 changes: 2 additions & 0 deletions test/Worker/AbstractWorkerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ public function testSubmitMultipleThenShutdown(): void
$worker->submit(new Fixtures\TestTask(72, 0.1))->getFuture(),
];

delay(0);

// Send shutdown signal, but don't await until tasks have finished.
$shutdown = async(fn () => $worker->shutdown());

Expand Down

0 comments on commit dfe0dd4

Please sign in to comment.