* update for ModestProtocolInfo stuff, and yes, checks pass
[modest] / tests / check_update-account.c
index 87b3862..b9213d9 100644 (file)
@@ -91,7 +91,7 @@ func (gpointer_data)
        g_object_unref (G_OBJECT (iter));
        g_object_unref (G_OBJECT (accounts));
 
-       queue = modest_mail_operation_queue_get_instance ();
+       queue = modest_tny_platform_factory_get_modest_mail_operation_queue_instance (fact);
        mail_op = modest_mail_operation_new ();
        
        g_signal_connect (G_OBJECT (mail_op), "progress_changed", 
@@ -105,14 +105,6 @@ func (gpointer_data)
        return FALSE;
 }
 
-static void
-quit (gpointer data) 
-{
-       _exit (0);
-}
-
-
-
 int
 main (int argc, char **argv)
 {   
@@ -124,8 +116,6 @@ main (int argc, char **argv)
        main_loop = g_main_loop_new (NULL, FALSE);
         id = g_timeout_add(1000, func, main_loop);
 
-       g_timeout_add (5000, quit, main_loop); /* quit after 5 seconds */
-
        g_main_loop_run(main_loop);
 
        return 0;