diff options
-rw-r--r-- | tests/unittests/test_server_events.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unittests/test_server_events.c b/tests/unittests/test_server_events.c index a00eedfd..282c1ffe 100644 --- a/tests/unittests/test_server_events.c +++ b/tests/unittests/test_server_events.c @@ -21,6 +21,7 @@ void console_shows_online_presence_when_set_online(void **state) prefs_set_string(PREF_STATUSES_CONSOLE, "online"); plugins_init(); roster_create(); + roster_process_pending_presence(); char *barejid = "test1@server"; roster_add(barejid, "bob", NULL, "both", FALSE); Resource *resource = resource_new("resource", RESOURCE_ONLINE, NULL, 10); @@ -40,6 +41,7 @@ void console_shows_online_presence_when_set_all(void **state) prefs_set_string(PREF_STATUSES_CONSOLE, "all"); plugins_init(); roster_create(); + roster_process_pending_presence(); char *barejid = "test1@server"; roster_add(barejid, "bob", NULL, "both", FALSE); Resource *resource = resource_new("resource", RESOURCE_ONLINE, NULL, 10); @@ -59,6 +61,7 @@ void console_shows_dnd_presence_when_set_all(void **state) prefs_set_string(PREF_STATUSES_CONSOLE, "all"); plugins_init(); roster_create(); + roster_process_pending_presence(); char *barejid = "test1@server"; roster_add(barejid, "bob", NULL, "both", FALSE); Resource *resource = resource_new("resource", RESOURCE_ONLINE, NULL, 10); @@ -77,6 +80,7 @@ void handle_offline_removes_chat_session(void **state) { plugins_init(); roster_create(); + roster_process_pending_presence(); chat_sessions_init(); char *barejid = "friend@server.chat.com"; char *resource = "home"; @@ -100,6 +104,7 @@ void handle_offline_removes_chat_session(void **state) void lost_connection_clears_chat_sessions(void **state) { roster_create(); + roster_process_pending_presence(); chat_sessions_init(); chat_session_recipient_active("bob@server.org", "laptop", FALSE); chat_session_recipient_active("steve@server.org", "mobile", FALSE); |