diff options
Diffstat (limited to 'src/app/api/layouts.rs')
| -rw-r--r-- | src/app/api/layouts.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/app/api/layouts.rs b/src/app/api/layouts.rs index a2705acc..044731a4 100644 --- a/src/app/api/layouts.rs +++ b/src/app/api/layouts.rs @@ -586,6 +586,7 @@ fn validate_layout_node( #[cfg(test)] mod tests { + use super::super::test_support::{exiting_test_command, shutdown_test_runtimes}; use super::*; use crate::{ api::schema::{ErrorResponse, ResponseResult, SuccessResponse}, @@ -593,16 +594,6 @@ mod tests { workspace::Workspace, }; - #[cfg(windows)] - fn exiting_test_command() -> &'static str { - "C:\\Windows\\System32\\whoami.exe" - } - - #[cfg(not(windows))] - fn exiting_test_command() -> &'static str { - "/usr/bin/true" - } - fn app_with_workspace() -> App { let (_api_tx, api_rx) = tokio::sync::mpsc::unbounded_channel(); let mut app = App::new( @@ -621,13 +612,6 @@ mod tests { app } - fn shutdown_test_runtimes(app: &mut App) { - let runtimes: Vec<_> = app.terminal_runtimes.drain().collect(); - for (_terminal_id, runtime) in runtimes { - runtime.shutdown(); - } - } - #[test] fn layout_export_returns_portable_tree() { let mut app = app_with_workspace(); |
