Skip to content

Commit 412f19d

Browse files
author
Alexandre jublot
committed
fix: added packet size to fix assert error
1 parent a9f45c2 commit 412f19d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/unit-tests/SerializerTrait.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ TEST(SerializerTrait, Packet)
2929
polymorph::network::PacketHeader header {0};
3030
uint8_t payload = 42;
3131
polymorph::network::Packet<uint8_t> packet;
32+
header.pSize = sizeof(uint8_t);
3233
packet.header = header;
3334
packet.payload = payload;
3435
std::vector<std::byte> serialized = polymorph::network::SerializerTrait<polymorph::network::Packet<uint8_t>>::serialize(packet);

0 commit comments

Comments
 (0)