tests: Fix ComposerWebViewTest:get_html_for_draft

Our test wasn't using the appropriate callback `.end()` function, which
was failing the test with the latest Vala nightly releases, breaking the
Flatpak build in our CI already too. This should fix that issue.
This commit is contained in:
Niels De Graef 2025-11-26 00:21:57 +01:00 committed by Niels De Graef
parent b1e53e5e7d
commit 54d6fe2601

View file

@ -69,7 +69,7 @@ public class Composer.WebViewTest : Components.WebViewTestCase<Composer.WebView>
string BODY = "<p>para</p>";
load_body_fixture(BODY);
this.test_view.get_html_for_draft.begin(this.async_completion);
string html = this.test_view.get_html.end(async_result());
string html = this.test_view.get_html_for_draft.end(async_result());
assert_equal(html, PageStateTest.COMPLETE_BODY_TEMPLATE.printf(BODY));
}