Skip to content

Commit

Permalink
Update scheduler_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jujustayfly authored and svanhesteren committed Jun 18, 2024
1 parent a622677 commit b3726ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/gouda/scheduler_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ def perform
sleep(2)
Gouda::Workload.checkout_and_perform_one(executing_on: "Unit test")

assert Gouda::Workload.retried.reload.count == 1
assert_equal 1, Gouda::Workload.retried.reload.count
assert_nil Gouda::Workload.retried.first.scheduler_key
assert_equal "enqueued", Gouda::Workload.retried.first.state
end

test "re-inserts the next subsequent job after executing the queued one" do
Expand Down

0 comments on commit b3726ae

Please sign in to comment.