Skip to content

Commit 783cacb

Browse files
cardmagicclaude
andcommitted
test: report what a running redrive has left to move
The TypeScript suite covers this and the Ruby suite did not. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 5f48a26 commit 783cacb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎test/integration/redrive_test.rb‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,17 @@ def touch
174174
assert_equal 0, SolidObjects.redrives.find(task.id, authorization_context: "operator").moved
175175
end
176176

177+
test "reports what a running task has left to move" do
178+
dead_effects(25)
179+
180+
task = SolidObjects.dead_letters.effects.redrive(limit: 15, authorization_context: "operator")
181+
assert_equal 15, task.remaining
182+
183+
SolidObjects::RedriveRunner.new.run_once
184+
185+
assert_equal 5, SolidObjects.redrives.find(task.id, authorization_context: "operator").remaining
186+
end
187+
177188
test "reads tasks back by id and by status" do
178189
dead_effects(5)
179190
task = SolidObjects.dead_letters.effects.redrive(authorization_context: "operator")

0 commit comments

Comments
 (0)