[tracker/rss-enclosures] tracker-steroids tests: when cancelled, an error is expected
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] tracker-steroids tests: when cancelled, an error is expected
- Date: Wed, 24 Nov 2010 01:24:58 +0000 (UTC)
commit 4b77ca1900af36074e948cfd283da75f7d48e3ec
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Aug 19 18:56:18 2010 +0200
tracker-steroids tests: when cancelled, an error is expected
tests/tracker-steroids/tracker-test.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tests/tracker-steroids/tracker-test.c b/tests/tracker-steroids/tracker-test.c
index 16af31a..720819f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]