You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) ItemizableUpdateService events with distributions should send an itemizable event if it already exists
Failure/Error:
raise InventoryError.new("Could not reduce quantity by #{quantity} - current quantity is #{current_quantity}",
item_id,
id)
InventoryError:
Could not reduce quantity by 5 - current quantity is 0 for My Item 1 in Smithsonian Conservation Center
# ./app/events/event_types/event_storage_location.rb:35:in `reduce_inventory'
# ./app/events/event_types/inventory.rb:45:in `move_item'
# ./app/events/inventory_aggregate.rb:71:in `block in handle_inventory_event'
# ./app/events/inventory_aggregate.rb:65:in `each'
# ./app/events/inventory_aggregate.rb:65:in `handle_inventory_event'
# ./app/events/inventory_aggregate.rb:114:in `block in <module:InventoryAggregate>'
# ./app/events/inventory_aggregate.rb:57:in `handle'
# ./app/events/inventory_aggregate.rb:42:in `block in inventory_for'
# ./app/events/inventory_aggregate.rb:33:in `each'
# ./app/events/inventory_aggregate.rb:33:in `inventory_for'
# ./app/models/event.rb:84:in `validate_inventory'
# ./app/events/distribution_event.rb:4:in `publish'
# ./spec/services/itemizable_update_service_spec.rb:234:in `block (4 levels) in <top (required)>'
# ./spec/services/itemizable_update_service_spec.rb:23:in `block (3 levels) in <top (required)>'
# ./spec/services/itemizable_update_service_spec.rb:22:in `block (2 levels) in <top (required)>'
Randomized with seed 18466
Things to consider
No response
Criteria for Completion
No response
The text was updated successfully, but these errors were encountered:
Summary
The following test only fails sometimes: https://github.com/rubyforgood/human-essentials/actions/runs/9780748669/job/27003147071?pr=4488
Things to consider
No response
Criteria for Completion
No response
The text was updated successfully, but these errors were encountered: