Skip to content

Commit

Permalink
Fix unit test after realm list changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosvex committed Oct 4, 2024
1 parent 94f2350 commit 2f0c3b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/login/grunt/server/RealmList.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class RealmList final : public Packet {
stream >> realm.type;
stream >> realm.flags;
stream >> realm.name;
stream >> realm.ip;
stream >> realm.address;
stream >> realm.population;
stream >> num_chars;

Expand Down
4 changes: 2 additions & 2 deletions tests/GruntProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ TEST(GruntProtocol, ServerRealmList) {
ASSERT_EQ(Realm::Flags::OFFLINE, realm.flags) << "Invalid realm flags";
ASSERT_EQ(Realm::Type::PvP, realm.type) << "Invalid realm type";
ASSERT_EQ(dbc::Cfg_Categories::Category::UNITED_STATES, realm.category) << "Invalid realm category";
ASSERT_EQ("127.0.0.1:1337"s, realm.ip) << "Invalid realm IP";
ASSERT_EQ("127.0.0.1:1337"s, realm.address) << "Invalid realm IP";
ASSERT_EQ("Ember"s, realm.name) << "Invalid realm name";
ASSERT_FLOAT_EQ(0.0f, realm.population) << "Invalid realm population";
ASSERT_EQ(0, chars) << "Invalid character count";
Expand All @@ -292,7 +292,7 @@ TEST(GruntProtocol, ServerRealmList) {
ASSERT_EQ(Realm::Flags::INVALID, realm.flags) << "Invalid realm flags";
ASSERT_EQ(Realm::Type::PvE, realm.type) << "Invalid realm type";
ASSERT_EQ(dbc::Cfg_Categories::Category::UNITED_STATES, realm.category) << "Invalid realm category";
ASSERT_EQ("127.0.0.1:8085"s, realm.ip) << "Invalid realm IP";
ASSERT_EQ("127.0.0.1:8085"s, realm.address) << "Invalid realm IP";
ASSERT_EQ("Ember Test"s, realm.name) << "Invalid realm name";
ASSERT_FLOAT_EQ(1.4f, realm.population) << "Invalid realm population";
ASSERT_EQ(0, chars) << "Invalid character count";
Expand Down

0 comments on commit 2f0c3b4

Please sign in to comment.