[folks] tests: Fix implicit .begin usage in double-aggregator test
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] tests: Fix implicit .begin usage in double-aggregator test
- Date: Fri, 2 Aug 2013 14:12:06 +0000 (UTC)
commit 53c8317563f26da4f673a4b03777796651fe17ff
Author: Philip Withnall <philip tecnocode co uk>
Date: Fri Aug 2 16:11:44 2013 +0200
tests: Fix implicit .begin usage in double-aggregator test
tests/eds/double-aggregator.vala | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/tests/eds/double-aggregator.vala b/tests/eds/double-aggregator.vala
index fa68a9f..ec57346 100644
--- a/tests/eds/double-aggregator.vala
+++ b/tests/eds/double-aggregator.vala
@@ -68,7 +68,10 @@ public class DoubleAggregatorTests : EdsTest.TestCase
{
this._prepare_test ();
- this._unlink_individuals ();
+ this._unlink_individuals.begin ((o, r) =>
+ {
+ this._unlink_individuals.end (r);
+ });
TestUtils.loop_run_with_timeout (this._main_loop);
}
@@ -76,7 +79,10 @@ public class DoubleAggregatorTests : EdsTest.TestCase
{
this._prepare_test ();
- this._remove_individual ();
+ this._remove_individual.begin ((o, r) =>
+ {
+ this._remove_individual.end (r);
+ });
TestUtils.loop_run_with_timeout (this._main_loop);
}
@@ -116,7 +122,7 @@ public class DoubleAggregatorTests : EdsTest.TestCase
yield this.eds_backend.commit_contacts_to_addressbook ();
this._aggregator.notify["is-quiescent"].connect (this._link_individuals);
- this._prepare_aggregator (this._aggregator);
+ yield this._prepare_aggregator (this._aggregator);
}
private async void _link_individuals ()
@@ -144,7 +150,7 @@ public class DoubleAggregatorTests : EdsTest.TestCase
this._aggregator2 = new IndividualAggregator ();
this._aggregator2.notify["is-quiescent"].connect (this._aggregator2_is_quiescent);
- this._prepare_aggregator (this._aggregator2);
+ yield this._prepare_aggregator (this._aggregator2);
}
private void _aggregator2_is_quiescent ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]