Update OpenOrderCycleJob test "syncing remote products" to expect 58 queries instead of 59

The main point of the test is to alert us if the query count increased (https://github.com/openfoodfoundation/openfoodnetwork/pull/13232#discussion_r2199896280).
The missing query in rails 7.1:

Spree::StockItem Load  SELECT "spree_stock_items"."id", "spree_stock_items"."variant_id", "spree_stock_items"."count_on_hand", "spree_stock_items"."created_at", "spree_stock_items"."updated_at", "spree_stock_items"."backorderable", "spree_stock_items"."deleted_at", "spree_stock_items"."lock_version" FROM "spree_stock_items" WHERE "spree_stock_items"."id" = $1 LIMIT $2 FOR UPDATE
This commit is contained in:
Carlos Chitty
2025-04-30 13:42:36 -04:00
committed by Filipe
parent a2f263e081
commit 3153e99497

View File

@@ -71,7 +71,7 @@ RSpec.describe OpenOrderCycleJob do
.and change { variant.on_demand }.to(true)
.and change { variant.on_hand }.by(0)
.and change { variant_discontinued.on_hand }.to(0)
.and query_database 59
.and query_database 58
end
end