SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
Hover test: allow the first hover half of the index time, not a third (#9638)
bherbruck56f07a55989d
diff --git a/crates/ui-egui/src/preselect_tests.rs b/crates/ui-egui/src/preselect_tests.rsindex 88a510baad..77b4bfb06e 100644--- a/crates/ui-egui/src/preselect_tests.rs+++ b/crates/ui-egui/src/preselect_tests.rs@@ -2773,7 +2773,9 @@ fn hovering_a_large_body_does_not_wait_for_its_pick_index() {h.step(&json!({"move": at})).unwrap();let hover_ms = t.elapsed().as_secs_f64() * 1000.0;assert!(matches!(h.app.viewport.hover, Some(crate::viewport::Hit::Face { .. })), "{:?}", h.app.viewport.hover);- assert!(hover_ms < index_ms / 3.0, "the first hover took {hover_ms:.1} ms; making the index takes {index_ms:.1} ms");+ // Half, not a third: on a loaded runner the hover alone has taken 70 ms against a 190 ms index.+ // Waiting for the index would cost the whole of it, so half still tells the two apart.+ assert!(hover_ms < index_ms / 2.0, "the first hover took {hover_ms:.1} ms; making the index takes {index_ms:.1} ms");}/// #4452: with Combine open, bodies clicked in the Browser fill its inputs, as clicks on them