From 6409a8cbbd8d1cf6e99739417bfa42a931ace948 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 13 Oct 2026 05:58:28 -0400 Subject: [PATCH] Fix build after merging main into #335 Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/edit_window.rs | 3 ++- crates/ui-egui/src/theme.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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]