trivial: Test for the correct thing in the tests

This commit is contained in:
Richard Hughes 2023-02-11 22:34:48 +00:00
parent 9d313bb3c9
commit e4ce1c4d19

View File

@ -2544,7 +2544,7 @@ fu_firmware_archive_func(void)
"*.bin.asc", "*.bin.asc",
&error); &error);
g_assert_no_error(error); g_assert_no_error(error);
g_assert_nonnull(img_bin); g_assert_nonnull(img_asc);
img_both = img_both =
fu_archive_firmware_get_image_fnmatch(FU_ARCHIVE_FIRMWARE(firmware), "*.bin*", &error); fu_archive_firmware_get_image_fnmatch(FU_ARCHIVE_FIRMWARE(firmware), "*.bin*", &error);
g_assert_error(error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT); g_assert_error(error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT);