From 7616ffcb35733846b1472531aa4940758626a0ae Mon Sep 17 00:00:00 2001 From: Yingwen Date: Fri, 7 Nov 2025 15:32:53 +0800 Subject: [PATCH] test: only set ttl to forever in fuzz alter test (#7202) Signed-off-by: evenyag --- tests-fuzz/src/generator/alter_expr.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tests-fuzz/src/generator/alter_expr.rs b/tests-fuzz/src/generator/alter_expr.rs index 08c59fc6ea..2d0bac8fc4 100644 --- a/tests-fuzz/src/generator/alter_expr.rs +++ b/tests-fuzz/src/generator/alter_expr.rs @@ -219,16 +219,9 @@ impl Generator for AlterExprSetTableOptionsGenerator< .iter() .map(|idx| match all_options[*idx] { AlterTableOption::Ttl(_) => { - let ttl_type = rng.random_range(0..3); - match ttl_type { - 0 => { - let duration: u32 = rng.random(); - AlterTableOption::Ttl(Ttl::Duration((duration as i64).into())) - } - 1 => AlterTableOption::Ttl(Ttl::Instant), - 2 => AlterTableOption::Ttl(Ttl::Forever), - _ => unreachable!(), - } + // The database purges expired files in background so it's hard to check + // non-forever TTL. + AlterTableOption::Ttl(Ttl::Forever) } AlterTableOption::TwcsTimeWindow(_) => { let time_window: u32 = rng.random();