Skip to content

Commit

Permalink
adjust progress
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Jun 10, 2024
1 parent b569d78 commit 4969dea
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 4969dea

Please sign in to comment.