[tracker/class-signal: 19/61] functional-tests: class-signal: Use normal DBus to avoid bug in FD passing



commit 29646c8666e311c21f88f169d63d0b162e6d856a
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Aug 20 13:59:45 2010 +0200

    functional-tests: class-signal: Use normal DBus to avoid bug in FD passing

 tests/functional-tests/class-signal-test.vala |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/class-signal-test.vala b/tests/functional-tests/class-signal-test.vala
index 99ec37a..482c1ff 100644
--- a/tests/functional-tests/class-signal-test.vala
+++ b/tests/functional-tests/class-signal-test.vala
@@ -30,6 +30,9 @@ struct Event {
 private interface Resources : GLib.Object {
 	[DBus (name = "ClassSignal")]
 	public signal void class_signal (string class_name, Event[] deletes, Event[] inserts);
+
+	[DBus (name = "SparqlUpdate")]
+	public abstract async void sparql_update_async (string query) throws Sparql.Error, DBus.Error;
 }
 
 public class TestApp {
@@ -136,9 +139,10 @@ public class TestApp {
 	private void insert_data () {
 		int i;
 
-		for (i = 0; i< 100; i++) {
+		for (i = 0; i< 10000; i++) {
 			string upqry = "DELETE { <%d> a rdfs:Resource } INSERT { <%d> a nmm:MusicPiece ; nie:title 'title %d' }".printf(i, i, i);
-			con.update_async (upqry);
+			resources_object.sparql_update_async (upqry);
+			// con.update_async (upqry);
 		}
 	}
 



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