[libchamplain] Give more time to the animations during the unit tests.



commit bf014259bd815cf6594fe52b6933e1db0bb308fb
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date:   Mon Aug 3 19:04:55 2009 +0200

    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.

 bindings/perl/Champlain/t/ChamplainView.t |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
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;
 	});



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]