Skip to content

Commit dc1d6fa

Browse files
committed
fixes
1 parent c8a56a1 commit dc1d6fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/Laravel/tests/Queue/LaravelQueueFinalFailureStrategyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ public function test_sending_with_delay_using_datetime()
105105
$ecotoneTestSupport->sendCommandWithRoutingKey('execute.delayed_command', new DelayedCommand('test_1'), metadata: [
106106
MessageHeaders::DELIVERY_DELAY => (new DateTimeImmutable())->modify('+1 second'),
107107
]);
108-
$ecotoneTestSupport->run('async', ExecutionPollingMetadata::createWithTestingSetup(maxExecutionTimeInMilliseconds: 2000));
108+
sleep(2);
109+
$ecotoneTestSupport->run('async', ExecutionPollingMetadata::createWithTestingSetup());
109110

110111
$this->assertEquals(['test_1'], $delayedService->getMessages());
111112
}

packages/Symfony/tests/phpunit/MessengerIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function test_sending_with_delay_using_datetime()
331331
$messaging->sendCommandWithRoutingKey('execute.example_command', $messagePayload, metadata: [
332332
MessageHeaders::DELIVERY_DELAY => (new DateTimeImmutable())->modify('+1 second'),
333333
]);
334-
sleep(1);
334+
sleep(2);
335335
$messaging->run($channelName, ExecutionPollingMetadata::createWithTestingSetup());
336336
$this->assertCount(1, $messaging->sendQueryWithRouting('consumer.getMessages'));
337337
}

0 commit comments

Comments
 (0)