[tracker/direct-access-update-fd-passing] Fix direct update test



commit 393ad4e9d75960985d8759279cbcb328ed8cb57b
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Jul 22 10:22:55 2010 +0200

    Fix direct update test

 tests/functional-tests/direct-update-test.vala |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/tests/functional-tests/direct-update-test.vala b/tests/functional-tests/direct-update-test.vala
index 67ed44e..d676c1c 100644
--- a/tests/functional-tests/direct-update-test.vala
+++ b/tests/functional-tests/direct-update-test.vala
@@ -30,19 +30,12 @@ main( string[] args )
 
 	try {
 		con.update ("INSERT { <test01> a nie:InformationElement ; nie:title 'test01' }");
-	} catch (GLib.Error e) {
-		warning ("Couldn't perform query: %s", e.message);
-		return -1;
-	}
-
-	try {
 		cursor = con.query ("SELECT ?title WHERE { <test01> nie:title ?title }");
+		a = iter_cursor (cursor);
 	} catch (GLib.Error e) {
 		warning ("Couldn't perform query: %s", e.message);
 		return -1;
 	}
 
-	a = iter_cursor (cursor);
-
 	return a;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]