mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
test(master): fix server list flag test compile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -674,7 +674,7 @@ TEST(MasterPacketsTests, ServerListWithoutOutdatedFlags) {
|
||||
response.Serialize(full);
|
||||
// Drop the last byte (the one flag)
|
||||
RakNet::BitStream older;
|
||||
older.Write(full.GetData(), static_cast<unsigned int>(full.GetNumberOfBytesUsed() - 1));
|
||||
older.Write(reinterpret_cast<const char*>(full.GetData()), static_cast<unsigned int>(full.GetNumberOfBytesUsed() - 1));
|
||||
MasterPackets::ServerListResponse read;
|
||||
ASSERT_TRUE(read.Deserialize(older));
|
||||
ASSERT_EQ(read.instances.size(), 1u);
|
||||
|
||||
Reference in New Issue
Block a user