- Fix tests
authorJussi Laako <jussi.laako@linux.intel.com>
Thu, 7 Mar 2013 16:16:16 +0000 (18:16 +0200)
committerJussi Laako <jussi.laako@linux.intel.com>
Fri, 31 May 2013 09:27:44 +0000 (12:27 +0300)
- Don't emit local status updates

libsignon-glib/signon-auth-session.c
tests/check_signon.c

index 992efa89f7de60ac9fece884d91f072a26fb7c3f..452e248ce4e5088f50c8931668440b07a7352973 100644 (file)
@@ -218,12 +218,6 @@ auth_session_process_ready_cb (gpointer object, const GError *error, gpointer us
                                    process_data->cancellable,
                                    auth_session_process_reply,
                                    res);
-
-    g_signal_emit (self,
-                   auth_session_signals[STATE_CHANGED],
-                   0,
-                   SIGNON_AUTH_SESSION_STATE_PROCESS_PENDING,
-                   auth_session_process_pending_message);
 }
 
 static void
index 7adbdf00c31546e94050f6f5d38c9508b7945652..b73eaa1a3f2c62354e309a0fd5f33312df22f668 100644 (file)
@@ -932,35 +932,13 @@ START_TEST(test_remove_identity)
 
     main_loop = g_main_loop_new (NULL, FALSE);
     /*
-     * Try to remove non-stored idetnity
+     * Try to remove non-stored identity
      * */
     signon_identity_remove(idty, identity_remove_cb, NULL);
     g_main_loop_run (main_loop);
 
     GHashTable *methods = create_methods_hashtable();
 
-    gchar username[] = "James Bond";
-    gchar secret[] = "007";
-    gchar caption[] = "MI-6";
-
-    signon_identity_store_credentials_with_args (idty,
-                                                 username,
-                                                 secret,
-                                                 1,
-                                                 methods,
-                                                 caption,
-                                                 NULL,
-                                                 NULL,
-                                                 NULL,
-                                                 0,
-                                                 store_credentials_identity_cb,
-                                                 NULL);
-    g_hash_table_destroy (methods);
-    g_main_loop_run (main_loop);
-
-    signon_identity_remove(idty, identity_remove_cb, NULL);
-    g_main_loop_run (main_loop);
-
     /*
      * Try to remove existing identy
      * */