NEO-132: Fix economy refresh signal test matchers

quest_completion_reward_transition emits quest_id and summary; GdUnit
is_emitted needs any() for both args or the assertion times out in CI.
pull/171/head
VinPropane 2026-06-14 14:24:14 -04:00
parent e2991a2926
commit fa9396323e
1 changed files with 7 additions and 4 deletions

View File

@ -319,7 +319,7 @@ func test_completion_transition_emits_economy_refresh_signal() -> void:
controller.call("_on_progress_received", _active_gather_snapshot())
controller.call("_on_progress_received", _completed_gather_with_summary_snapshot())
# Assert
await assert_signal(controller).is_emitted("quest_completion_reward_transition", any())
await assert_signal(controller).is_emitted("quest_completion_reward_transition", any(), any())
func test_completion_transition_invokes_economy_refresh_callback() -> void:
@ -364,9 +364,12 @@ func test_completion_transition_queues_economy_refresh_while_clients_busy() -> v
for i in range(24):
bag_parts.append('{"slotIndex":%d,"quantity":0}' % i)
inv_transport.body_json = (
'{"schemaVersion":1,"playerId":"dev-local-1","bagSlots":[%s],'
+ '"equipmentSlots":[{"slotIndex":0,"quantity":0}]}'
) % ", ".join(bag_parts)
(
'{"schemaVersion":1,"playerId":"dev-local-1","bagSlots":[%s],'
+ '"equipmentSlots":[{"slotIndex":0,"quantity":0}]}'
)
% ", ".join(bag_parts)
)
var skill_transport := PendingSyncHttpTransport.new()
skill_transport.body_json = (
'{"schemaVersion":1,"playerId":"dev-local-1","skills":'