aboutsummaryrefslogtreecommitdiff
path: root/src/app/api/tabs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/api/tabs.rs')
-rw-r--r--src/app/api/tabs.rs18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/app/api/tabs.rs b/src/app/api/tabs.rs
index ce126ca7..1f29f54b 100644
--- a/src/app/api/tabs.rs
+++ b/src/app/api/tabs.rs
@@ -292,6 +292,7 @@ fn tab_not_found(id: String, tab_id: &str) -> String {
#[cfg(test)]
mod tests {
+ use super::super::test_support::{exiting_test_command, shutdown_test_runtimes};
use super::*;
use crate::{
api::schema::SuccessResponse,
@@ -299,23 +300,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 shutdown_test_runtimes(app: &mut App) {
- let runtimes: Vec<_> = app.terminal_runtimes.drain().collect();
- for (_terminal_id, runtime) in runtimes {
- runtime.shutdown();
- }
- }
-
#[test]
fn api_tab_move_reorders_tabs_in_target_workspace() {
let event_hub = crate::api::EventHub::default();