From 99f6356b5b4f64069bda7f26c8505608fad07e0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bart=C5=82omiej=20Piotrowski?= Date: Fri, 26 May 2023 12:09:13 +0200 Subject: [PATCH] Use a value based on OSTREE_MAX_METADATA_SIZE --- tests/test-basic-c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-basic-c.c b/tests/test-basic-c.c index b9a15ef1..a01cef6f 100644 --- a/tests/test-basic-c.c +++ b/tests/test-basic-c.c @@ -417,7 +417,7 @@ test_big_metadata (void) g_assert_no_error (error); g_assert (ret); - const size_t len = 20 * 1024 * 1024; + const size_t len = OSTREE_MAX_METADATA_SIZE + 1; g_assert_cmpint (len, >, OSTREE_MAX_METADATA_SIZE); g_autofree char *large_buf = g_malloc (len); memset (large_buf, 0x42, len); -- 2.30.2