[folks] Serialize checks for completion in EDS test.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Serialize checks for completion in EDS test.
- Date: Fri, 23 Sep 2011 20:10:30 +0000 (UTC)
commit 532c8cfff019d7fe5bd0c31babe7c93543c37aa5
Author: Travis Reitter <travis reitter collabora co uk>
Date: Thu Sep 22 10:37:37 2011 -0700
Serialize checks for completion in EDS test.
We were interleaving checks which resulted in inconsistent behavior.
tests/eds/link-personas-diff-stores.vala | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/tests/eds/link-personas-diff-stores.vala b/tests/eds/link-personas-diff-stores.vala
index e20036a..2d216b1 100644
--- a/tests/eds/link-personas-diff-stores.vala
+++ b/tests/eds/link-personas-diff-stores.vala
@@ -178,10 +178,13 @@ public class LinkPersonasDiffStoresTests : Folks.TestCase
private void _individuals_changed_cb (
MultiMap<Individual?, Individual?> changes)
{
- this._individuals_changed_async (changes);
+ this._individuals_changed_async.begin (changes, (object, result) =>
+ {
+ this._individuals_changed_async.end (result);
+ });
}
- private void _individuals_changed_async (
+ private async void _individuals_changed_async (
MultiMap<Individual?, Individual?> changes)
{
var added = changes.get_values ();
@@ -193,7 +196,7 @@ public class LinkPersonasDiffStoresTests : Folks.TestCase
continue;
}
- this._check_personas (i);
+ yield this._check_personas (i);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]