summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2010-08-19 18:56:18 +0200
committerAleksander Morgado <aleksander@lanedo.com>2010-08-19 18:56:18 +0200
commitc49788767d4500cf7de2cf0f9b154ff26ae07498 (patch)
tree989bfdd543ec64261d62fe622645625fdf30db92
parent3ef827fb75c3911949709265d5312339cd0f219d (diff)
downloadtracker-c49788767d4500cf7de2cf0f9b154ff26ae07498.tar.gz
tracker-steroids tests: when cancelled, an error is expected
-rw-r--r--tests/tracker-steroids/tracker-test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tracker-steroids/tracker-test.c b/tests/tracker-steroids/tracker-test.c
index 16af31a6f..720819ff0 100644
--- a/tests/tracker-steroids/tracker-test.c
+++ b/tests/tracker-steroids/tracker-test.c
@@ -460,7 +460,8 @@ cancel_query_cb (GObject *source_object,
tracker_sparql_connection_query_finish (connection, result, &error);
- g_assert_no_error (error);
+ /* An error should be returned (cancelled!) */
+ g_assert (error);
}
static void
@@ -537,7 +538,8 @@ cancel_update_cb (GObject *source_object,
tracker_sparql_connection_update_finish (connection, result, &error);
- g_assert_no_error (error);
+ /* An error should be returned (cancelled!) */
+ g_assert (error);
}
static void