From 4969deab4fec5b02f5c3ac44d9f7c169bd8b34a3 Mon Sep 17 00:00:00 2001 From: Noel Kwan Date: Mon, 10 Jun 2024 11:32:11 +0800 Subject: [PATCH] adjust progress --- .../simulation/tests/integration_tests/backfill_tests.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tests/simulation/tests/integration_tests/backfill_tests.rs b/src/tests/simulation/tests/integration_tests/backfill_tests.rs index ba34f45e6af67..1d8f7bb727101 100644 --- a/src/tests/simulation/tests/integration_tests/backfill_tests.rs +++ b/src/tests/simulation/tests/integration_tests/backfill_tests.rs @@ -256,7 +256,8 @@ async fn test_arrangement_backfill_progress() -> Result<()> { .run("CREATE MATERIALIZED VIEW m1 AS SELECT * FROM t") .await?; - // Verify arrangement backfill progress after 10s, it should be 1% at least. + // Verify arrangement backfill progress after 10s, it should be around 1%, + // since 10s = 10 records processed. sleep(Duration::from_secs(10)).await; let progress = session .run("SELECT progress FROM rw_catalog.rw_ddl_progress") @@ -264,7 +265,7 @@ async fn test_arrangement_backfill_progress() -> Result<()> { let progress = progress.replace('%', ""); let progress = progress.parse::().unwrap(); assert!( - (1.0..10.0).contains(&progress), + (0.5..1.5).contains(&progress), "progress not within bounds {}", progress );