]> err.no Git - libchamplain/commitdiff
Give more time to the animations during the unit tests.
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Mon, 3 Aug 2009 17:04:55 +0000 (19:04 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 3 Aug 2009 22:14:32 +0000 (18:14 -0400)
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.

bindings/perl/Champlain/t/ChamplainView.t

index 69273f7088b7a8d01b156a72dfab33ace498eaac..223c8f34b3b405c4c24f844f34ada560ac1b8318 100644 (file)
@@ -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;
        });