From fa9396323eae971ec5be7eb3e8c748e13eca56db Mon Sep 17 00:00:00 2001 From: VinPropane Date: Sun, 14 Jun 2026 14:24:14 -0400 Subject: [PATCH] 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. --- client/test/quest_reward_hud_test.gd | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/client/test/quest_reward_hud_test.gd b/client/test/quest_reward_hud_test.gd index ad43efc..8913d79 100644 --- a/client/test/quest_reward_hud_test.gd +++ b/client/test/quest_reward_hud_test.gd @@ -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":'