From 4b498e3b4a09008558713e6c453ef407e602846e Mon Sep 17 00:00:00 2001 From: Kieran Kihn <114803508+kierankihn@users.noreply.github.com> Date: Tue, 2 Dec 2025 12:28:12 +0800 Subject: [PATCH] test(network): update tests to reflect `InitGamePayload` changes - Modified `MessageSerializerTest` to pass `handCard.getCards()` instead of `handCard` in `InitGamePayload` construction. --- test/unit/network/MessageSerializerTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/network/MessageSerializerTest.cpp b/test/unit/network/MessageSerializerTest.cpp index 6c567ac..16b04c5 100644 --- a/test/unit/network/MessageSerializerTest.cpp +++ b/test/unit/network/MessageSerializerTest.cpp @@ -195,7 +195,7 @@ TEST(MessageSerializerTest, SerializeInitGameMessage) handCard.draw(Card(CardColor::GREEN, CardType::NUM3)); handCard.draw(Card(CardColor::YELLOW, CardType::REVERSE)); - InitGamePayload payload{discardPile, handCard, 2}; + InitGamePayload payload{discardPile, handCard.getCards(), 2}; Message message(MessageStatus::OK, MessagePayloadType::INIT_GAME, payload); std::string result = MessageSerializer::serialize(message); @@ -215,7 +215,7 @@ TEST(MessageSerializerTest, SerializeInitGameMessageWithEmptyPiles) DiscardPile discardPile; HandCard handCard; - InitGamePayload payload{discardPile, handCard, 0}; + InitGamePayload payload{discardPile, handCard.getCards(), 0}; Message message(MessageStatus::OK, MessagePayloadType::INIT_GAME, payload); std::string result = MessageSerializer::serialize(message);