Tests: update prompt tests wait for the threaded offer; panel close helper reads the dock's Close {name}; header-painting tests of the old dock renderer go

This commit is contained in:
aiongg committed 2026-11-24 15:34:17 +00:00
1 parent a13e9a74ee
commit 04c4e627b4
1 file changed
+7
+7
View File
@@ -162,6 +162,13 @@ mod tests {
..Default::default()
};
h.state_mut().updates_rt.updater.offer(release);
// The offer reads on a thread whether this copy can install the release itself; a later frame's tick opens
// the prompt.
let deadline = std::time::Instant::now() + std::time::Duration::from_secs(5);
while !h.state().updates_rt.updater.prompt_open() && std::time::Instant::now() < deadline {
h.run_steps(1);
std::thread::sleep(std::time::Duration::from_millis(2));
}
h.run_steps(2);
}