Commit c5df863a authored by Niels De Graef's avatar Niels De Graef

tests/folks: Async methods require a .begin()

This fixes a few valac warnings.
parent da643b3d
......@@ -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 ();
......
......@@ -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);
});
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment