X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=tests%2Fcheck_update-account.c;h=b9213d9d304b46f6e6b143ac390a8ec37de8874a;hp=87b386225375d59675cb5d326007403f826ad81f;hb=ea021abcd97d636fac9ff6769afad9e66e4edfad;hpb=62c4b64a4ddad892e3baa830f065999ec39d0bc1 diff --git a/tests/check_update-account.c b/tests/check_update-account.c index 87b3862..b9213d9 100644 --- a/tests/check_update-account.c +++ b/tests/check_update-account.c @@ -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;