From: Emmanuel Rodriguez Date: Mon, 3 Aug 2009 17:04:55 +0000 (+0200) Subject: Give more time to the animations during the unit tests. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf014259bd815cf6594fe52b6933e1db0bb308fb;p=libchamplain Give more time to the animations during the unit tests. Sometimes the animations need more time (bad connectivity and invalid cache?). In these conditions the tests fail. Now the tests have more time and they show a diagnostic showing that the main loop has timed out. --- diff --git a/bindings/perl/Champlain/t/ChamplainView.t b/bindings/perl/Champlain/t/ChamplainView.t index 69273f7..223c8f3 100644 --- a/bindings/perl/Champlain/t/ChamplainView.t +++ b/bindings/perl/Champlain/t/ChamplainView.t @@ -432,7 +432,8 @@ sub run_animation_loop { $view->signal_connect('animation-completed' => sub { Clutter->main_quit(); }); - Glib::Timeout->add(3000, sub { + Glib::Timeout->add(10_000, sub { + diag("Event loop timeout, perhaps the animation needs more time?"); Clutter->main_quit(); return FALSE; });