Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/Feature/ActivityTimeoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@ public function test_activity_redelivery_preserves_deadlines_without_new_attempt
{
Queue::fake();

// The dispatch counter is keyed by wall-clock minute. Hold the clock at
// the start of a minute so the dispatch and the queue read share one.
Carbon::setTestNow(Carbon::now()->startOfMinute());

config([
'server.admission.queue_overrides' => [
'default:external-activities' => [
Expand Down Expand Up @@ -502,6 +506,8 @@ public function test_activity_redelivery_preserves_deadlines_without_new_attempt
->assertJsonPath('admission.activity_tasks.server_max_dispatches_per_minute', 1)
->assertJsonPath('admission.activity_tasks.server_dispatch_count_this_minute', 1)
->assertJsonPath('admission.activity_tasks.server_remaining_dispatch_capacity', 0);

Carbon::setTestNow();
}

public function test_activity_poll_response_omits_deadlines_when_none_set(): void
Expand Down
Loading