[folks/wip/nielsdg/fix-warnings: 2/5] tests/folks: Async methods require a .begin()



commit c5df863a574f7c4e5e7337b571d6e5f98764548f
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Tue Apr 23 18:34:42 2019 +0200

    tests/folks: Async methods require a .begin()
    
    This fixes a few valac warnings.

 tests/folks/avatar-cache.vala    | 2 +-
 tests/folks/backend-loading.vala | 4 ++--
 tests/folks/init.vala            | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/folks/avatar-cache.vala b/tests/folks/avatar-cache.vala
index ee32e9e4..544ca786 100644
--- a/tests/folks/avatar-cache.vala
+++ b/tests/folks/avatar-cache.vala
@@ -179,7 +179,7 @@ public class AvatarCacheTests : Folks.TestCase
 
   protected void _assert_avatars_equal (LoadableIcon a, LoadableIcon b)
     {
-      TestUtils.loadable_icons_content_equal (a, b, -1, (object, result) =>
+      TestUtils.loadable_icons_content_equal.begin (a, b, -1, (object, result) =>
         {
           assert (TestUtils.loadable_icons_content_equal.end (result));
           this._main_loop.quit ();
diff --git a/tests/folks/backend-loading.vala b/tests/folks/backend-loading.vala
index 3cffdb81..a13ff86a 100644
--- a/tests/folks/backend-loading.vala
+++ b/tests/folks/backend-loading.vala
@@ -118,7 +118,7 @@ public class BackendLoadingTests : TpfTest.MixedTestCase
       this.main_loop = new GLib.MainLoop (null, false);
 
       var store = BackendStore.dup ();
-      this.test_disabling_async (store, (o, r) =>
+      this.test_disabling_async.begin (store, (o, r) =>
         {
           this.test_disabling_async.end (r);
         });
@@ -159,7 +159,7 @@ public class BackendLoadingTests : TpfTest.MixedTestCase
       this.main_loop = new GLib.MainLoop (null, false);
 
       var store = BackendStore.dup ();
-      this.test_reloading_async (store, (o, r) =>
+      this.test_reloading_async.begin (store, (o, r) =>
         {
           this.test_reloading_async.end (r);
         });
diff --git a/tests/folks/init.vala b/tests/folks/init.vala
index 0566d893..9fb2a1e3 100644
--- a/tests/folks/init.vala
+++ b/tests/folks/init.vala
@@ -63,7 +63,7 @@ public class InitTests : TpfTest.MixedTestCase
       for (uint i = 0; i < 10; i++)
         {
           var aggregator = IndividualAggregator.dup ();
-          aggregator.prepare (); /* Note: We don't yield for this to complete */
+          aggregator.prepare.begin (); /* Note: We don't yield for this to complete */
           aggregator = null;
         }
 


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