summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <gkiagia@tolabaki.gr>2016-07-04 19:26:04 +0300
committerGeorge Kiagiadakis <gkiagia@tolabaki.gr>2016-07-04 19:26:04 +0300
commit01510fe918d7d015fc69cdad6f4db56b28da75b5 (patch)
treeaeffc9356ef90f31f1364f450204ffc8526dc8f5
parent35194060b1f2692ab5316d0d2bc0fbe26d33e81a (diff)
wocky-test-connector-server: report errors when asserting on finishing async operations
-rw-r--r--tests/wocky-test-connector-server.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/wocky-test-connector-server.c b/tests/wocky-test-connector-server.c
index 919fa86..acf9a88 100644
--- a/tests/wocky-test-connector-server.c
+++ b/tests/wocky-test-connector-server.c
@@ -1382,12 +1382,16 @@ force_closed_cb (GObject *source,
gpointer user_data)
{
TestConnectorServer *self = TEST_CONNECTOR_SERVER (user_data);
+ GError *error = NULL;
+ gboolean success;
DEBUG ("Connection force closed");
- g_assert (wocky_xmpp_connection_force_close_finish (
+ success = wocky_xmpp_connection_force_close_finish (
WOCKY_XMPP_CONNECTION (source),
- result, NULL));
+ result, &error);
+ g_assert_no_error (error);
+ g_assert (success);
server_dec_outstanding (self);
}
@@ -1398,9 +1402,13 @@ see_other_host_cb (GObject *source,
gpointer user_data)
{
TestConnectorServer *self = user_data;
+ GError *error = NULL;
+ gboolean success;
- g_assert (wocky_xmpp_connection_send_stanza_finish (self->priv->conn,
- result, NULL));
+ success = wocky_xmpp_connection_send_stanza_finish (self->priv->conn,
+ result, &error);
+ g_assert_no_error (error);
+ g_assert (success);
if (server_dec_outstanding (self))
return;