mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 00:59:29 +01:00
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:
1 parent
a13e9a74ee
commit
04c4e627b4
1 file changed
+7
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user