Skip to content

Commit

Permalink
test(backfill): adjust the measured progress bounds for backfill test (
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel authored Jun 11, 2024
1 parent e9201ac commit bdf42d8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,16 @@ 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")
.await?;
let progress = progress.replace('%', "");
let progress = progress.parse::<f64>().unwrap();
assert!(
(1.0..10.0).contains(&progress),
(0.5..1.5).contains(&progress),
"progress not within bounds {}",
progress
);
Expand Down

0 comments on commit bdf42d8

Please sign in to comment.