Mercurial > irccd
diff tests/src/irccdctl/cli-plugin-reload/main.cpp @ 731:9d13aabfd63a
Irccd: plugin now have internal id
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 19 Jul 2018 07:22:36 +0200 |
parents | 3e816cebed2c |
children | 49b7c7660a00 |
line wrap: on
line diff
--- a/tests/src/irccdctl/cli-plugin-reload/main.cpp Wed Jul 18 13:49:56 2018 +0200 +++ b/tests/src/irccdctl/cli-plugin-reload/main.cpp Thu Jul 19 07:22:36 2018 +0200 @@ -29,6 +29,11 @@ public: bool reloaded{false}; + reloadable_plugin() + : plugin("test") + { + } + auto get_name() const noexcept -> std::string_view override { return "reload"; @@ -46,10 +51,10 @@ { const auto plugin = std::make_shared<reloadable_plugin>(); - irccd_.plugins().add("p", plugin); + irccd_.plugins().add(plugin); start(); - const auto result = exec({ "plugin-reload", "p" }); + const auto result = exec({ "plugin-reload", "test" }); BOOST_TEST(result.first.size() == 0U); BOOST_TEST(result.second.size() == 0U);