From b1b9fb55d9c43ac5fe9d4ea3fe895dcd9c5e84fd Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Thu, 21 Aug 2025 20:34:30 +0900 Subject: [PATCH] Use junk_data instead of urandom (#2700) The latter seems to block on macOS sometimes. --- test/integration-test-main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration-test-main.sh b/test/integration-test-main.sh index a88200d..6325ffa 100755 --- a/test/integration-test-main.sh +++ b/test/integration-test-main.sh @@ -98,7 +98,7 @@ function test_truncate_shrink_file { local BIG_TRUNCATE_TEST_FILE="big-truncate-test.bin" local t_size=$((1024 * 1024 * 32 + 64)) - dd if=/dev/urandom of="${TEMP_DIR}/${BIG_TRUNCATE_TEST_FILE}" bs=1024 count=$((1024 * 64)) + ../../junk_data $((64 * 1024 * 1024)) > "${TEMP_DIR}/${BIG_TRUNCATE_TEST_FILE}" cp "${TEMP_DIR}/${BIG_TRUNCATE_TEST_FILE}" "${BIG_TRUNCATE_TEST_FILE}" "${TRUNCATE_BIN}" "${TEMP_DIR}/${BIG_TRUNCATE_TEST_FILE}" -s "${t_size}"