From 823511b87a4f136103dcafdfecd6b65e319aae0d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 1 Oct 2018 14:55:30 -0400 Subject: [PATCH] Update tests for changed errors Great that we're actually testing these. Closes: #2150 Approved by: alexlarsson --- tests/testlibrary.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testlibrary.c b/tests/testlibrary.c index fe3f44b3..ecd21eec 100644 --- a/tests/testlibrary.c +++ b/tests/testlibrary.c @@ -194,27 +194,27 @@ test_ref (void) ref = flatpak_ref_parse ("", &error); g_assert_null (ref); - g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED); + g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_INVALID_REF); g_clear_error (&error); ref = flatpak_ref_parse ("ref/or not", &error); g_assert_null (ref); - g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED); + g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_INVALID_REF); g_clear_error (&error); ref = flatpak_ref_parse ("ref/one/2/3", &error); g_assert_null (ref); - g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED); + g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_INVALID_REF); g_clear_error (&error); ref = flatpak_ref_parse ("app/a/b/c", &error); g_assert_null (ref); - g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED); + g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_INVALID_REF); g_clear_error (&error); ref = flatpak_ref_parse ("app/org.flatpak.Hello/b/.", &error); g_assert_null (ref); - g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED); + g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_INVALID_REF); g_clear_error (&error); valid = "app/org.flatpak.Hello/x86_64/master";