Use a value based on OSTREE_MAX_METADATA_SIZE
authorBartłomiej Piotrowski <b@bpiotrowski.pl>
Fri, 26 May 2023 10:09:13 +0000 (12:09 +0200)
committerBartłomiej Piotrowski <b@bpiotrowski.pl>
Fri, 26 May 2023 10:09:13 +0000 (12:09 +0200)
tests/test-basic-c.c

index b9a15ef139fa4cd6651c399dc3d006ec6983551a..a01cef6f064539afbee95f07050c49f7c0a004c8 100644 (file)
@@ -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);