diff --git a/crates/ui-egui/src/edit_window.rs b/crates/ui-egui/src/edit_window.rs index f425066..65e31ca 100644 --- a/crates/ui-egui/src/edit_window.rs +++ b/crates/ui-egui/src/edit_window.rs @@ -3042,7 +3042,8 @@ mod tests { .shapes .iter() .filter_map(|shape| match &shape.shape { - Shape::Mesh(mesh) if !mesh.vertices.is_empty() && mesh.vertices.iter().all(|vertex| clip_rect.contains(vertex.pos)) => { + // The waveform's columns snap to physical pixels and fade out over half of one. + Shape::Mesh(mesh) if !mesh.vertices.is_empty() && mesh.vertices.iter().all(|vertex| clip_rect.expand(1.0).contains(vertex.pos)) => { Some(mesh.vertices.iter().map(|vertex| vertex.pos).collect()) } _ => None, diff --git a/crates/ui-egui/src/theme.rs b/crates/ui-egui/src/theme.rs index e88e4fa..0cf5b9b 100644 --- a/crates/ui-egui/src/theme.rs +++ b/crates/ui-egui/src/theme.rs @@ -502,7 +502,8 @@ mod tests { drop(inner); drop(outer); drop(app); - assert!(rx.recv_timeout(std::time::Duration::from_secs(5)).is_ok(), "the palette lock must be released when every holder drops it"); + // Other tests compete for the lock too, and some hold it for seconds: allow for a queue. + assert!(rx.recv_timeout(std::time::Duration::from_secs(120)).is_ok(), "the palette lock must be released when every holder drops it"); } #[test]