Skip to content

Commit

Permalink
Update tests for acc3fe8
Browse files Browse the repository at this point in the history
We can just use a wesnothd_connection object directly here.

(cherry picked from commit 7767902)
  • Loading branch information
Vultraz authored and Pentarctagon committed Oct 15, 2018
1 parent 9c2eb0f commit 4a487ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/gui/test_gui2.cpp
Expand Up @@ -848,16 +848,16 @@ template<>
struct dialog_tester<mp_lobby>
{
config game_config;
wesnothd_connection_ptr connection;
wesnothd_connection connection;
wesnothd_connection_init init;
std::vector<std::string> installed_addons;
mp::lobby_info li;
dialog_tester() : connection(wesnothd_connection::create("", "")), init(*connection), li(installed_addons)
dialog_tester() : connection("", ""), init(*connection), li(installed_addons)
{
}
mp_lobby* create()
{
return new mp_lobby(game_config, li, *connection);
return new mp_lobby(game_config, li, connection);
}
};

Expand All @@ -874,13 +874,13 @@ struct dialog_tester<lobby_player_info>
{
config c;
fake_chat_handler ch;
wesnothd_connection_ptr connection;
wesnothd_connection connection;
wesnothd_connection_init init;
mp::user_info ui;
std::vector<std::string> installed_addons;
mp::lobby_info li;
dialog_tester()
: connection(wesnothd_connection::create("", "")), init(*connection)
: connection("", ""), init(connection)
, ui(c), li(installed_addons)
{
}
Expand Down

0 comments on commit 4a487ad

Please sign in to comment.