diff --git a/CHANGELOG.md b/CHANGELOG.md index 36426505e..1c68936eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,18 @@ `awaitWithTimeout()` and delayed v2 tasks longer than 15 minutes failed with `DelaySeconds must be >= 0 and <= 900`. They now wait in steps of at most 900 seconds, as on plain SQS (#1074, reported in #1072). +- Answer queries with what an update handler's stream receive took. A query + replayed an update handler's `inbox()->receive()` at the wrong step and saw + nothing (#1024). Live update handlers now record the message ids each + receive returned on their `UpdateApplied` event, and replays return exactly + those messages. Updates applied by earlier releases keep the previous + lookup (#1076). - Add experimental business transition contracts under `Workflow\V2\StateMachine` with native Saga integration (#1071, see `docs/business-state-machines.md`). The API is marked experimental and may change in a minor release. -- No database migration, history format or dependency floor change. +- No database migration or dependency floor change. `UpdateApplied` history + gains an optional `message_receives` field. Older runtimes ignore it. ## 2.22.0 - 2026-11-08 diff --git a/tests/Unit/Traits/TimersTest.php b/tests/Unit/Traits/TimersTest.php index ab79f6c8f..603dc41c5 100644 --- a/tests/Unit/Traits/TimersTest.php +++ b/tests/Unit/Traits/TimersTest.php @@ -407,7 +407,7 @@ public function testTimerCapsDelayForLaravelCloudDriver(): void $this->assertNull($result); Bus::assertDispatched(Timer::class, function ($job) use ($now) { - $delaySeconds = $job->delay->diffInSeconds($now); + $delaySeconds = $now->diffInSeconds($job->delay); $this->assertLessThanOrEqual(900, $delaySeconds); $this->assertGreaterThanOrEqual(899, $delaySeconds); return true;