Skip to content

Commit 5a8f1e2

Browse files
authored
Optimized Hyperf\Coordinator\Timer::tick() to run the callback inside Hyperf\Coroutine\wait() so it executes in a properly managed coroutine context. (#7761)
1 parent aab0415 commit 5a8f1e2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/AsyncQueueAspectTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public function testAnnotationJob()
9292
{
9393
$container = Mockery::mock(ContainerInterface::class);
9494
ApplicationContext::setContainer($container);
95+
$container->shouldReceive('has')->with(Waiter::class)->andReturnTrue();
9596
$container->shouldReceive('get')->with(Waiter::class)->andReturn(new Waiter());
9697

9798
wait(function () use ($container) {

0 commit comments

Comments
 (0)