craft-update: the restart-helper test's comment matches spawn_detached

spawn_detached now starts the process on its waiting thread, and the test
starts the helper on the calling thread. The comment names only what the
two share, standard streams set to null.
This commit is contained in:
dotCooCoo
2026-11-08 14:22:08 -08:00
parent 70ac5a64bb
commit c365d75c48
+3 -2
View File
@@ -2012,8 +2012,9 @@ mod tests {
/// The restart helper starts only when the restart is started, at the app's exit: a close the
/// user cancels leaves no helper counting down its one-minute wait. The test starts the helper
/// the way `spawn_detached` does and keeps it, and a thread that waits for the helper to exit
/// writes `exited`, so a helper that exits without writing `started` fails the test.
/// with its standard streams set to null, as `spawn_detached` does, and a thread that waits
/// for the helper to exit writes `exited`, so a helper that exits without writing `started`
/// fails the test.
#[cfg(unix)]
#[test]
fn the_restart_helper_starts_only_when_the_restart_is_started() {