]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
tests: downloader: Fix compiling test
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 Aug 2022 10:35:10 +0000 (10:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 Aug 2022 10:35:10 +0000 (10:35 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/downloader.c

index e6618801fa416dfd8d9c5cd434a54fd2844cce31..e8243d71382c1f85c1fb749a272ebc48cb9576bf 100644 (file)
@@ -164,7 +164,7 @@ static int test_retrieve_online_with_digest(const struct test* t) {
        ASSERT_SUCCESS(
                pakfire_downloader_retrieve(d, NULL, NULL, NULL,
                        "https://mirror1.ipfire.org/releases/pakfire/pakfire-0.9.27.tar.gz",
-                       DOWNLOAD_PATH, PAKFIRE_DIGEST_SHA256, expected_digest, sizeof(expected_digest), 0)
+                       DOWNLOAD_PATH, PAKFIRE_DIGEST_SHA2_256, expected_digest, sizeof(expected_digest), 0)
        );
 
        // Everything passed
@@ -188,7 +188,7 @@ static int test_retrieve_online_with_incorrect_digest(const struct test* t) {
        ASSERT_FAILURE(
                pakfire_downloader_retrieve(d, NULL, NULL, NULL,
                        "https://mirror1.ipfire.org/releases/pakfire/pakfire-0.9.27.tar.gz",
-                       DOWNLOAD_PATH, PAKFIRE_DIGEST_SHA256, incorrect_digest, sizeof(incorrect_digest), 0)
+                       DOWNLOAD_PATH, PAKFIRE_DIGEST_SHA2_256, incorrect_digest, sizeof(incorrect_digest), 0)
        );
 
        // Everything passed