changeset 172:66d3ef1c42b3

Irccd: unbreak test-js-timer
author David Demelier <markand@malikania.fr>
date Wed, 25 May 2016 22:39:42 +0200
parents a02756832959
children af42e0c98f8b
files tests/js-timer/main.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/js-timer/main.cpp	Wed May 25 22:37:06 2016 +0200
+++ b/tests/js-timer/main.cpp	Wed May 25 22:39:42 2016 +0200
@@ -34,6 +34,7 @@
 
 	auto plugin = std::make_shared<JsPlugin>("timer", IRCCD_TESTS_DIRECTORY "/timer-single.js");
 
+	plugin->onLoad(irccd);
 	irccd.pluginService().add(plugin);
 
 	while (timer.elapsed() < 3000) {
@@ -51,6 +52,7 @@
 
 	auto plugin = std::make_shared<JsPlugin>("timer", IRCCD_TESTS_DIRECTORY "/timer-repeat.js");
 
+	plugin->onLoad(irccd);
 	irccd.pluginService().add(plugin);
 
 	while (timer.elapsed() < 3000) {
@@ -88,10 +90,10 @@
 
 int main(int argc, char **argv)
 {
-	/* Needed for some components */
+	// Needed for some components.
 	sys::setProgramName("irccd");
 	path::setApplicationPath(argv[0]);
-	log::setInterface(std::make_unique<log::Console>());
+	log::setInterface(std::make_unique<log::Silent>());
 	log::setVerbose(true);
 	testing::InitGoogleTest(&argc, argv);