From 068d6d814e1a9f5fb1c8154b5812296210a583ab Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Sun, 28 Dec 2025 22:51:01 -0800 Subject: [PATCH] remove useless tests --- crates/gpui/src/executor.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/crates/gpui/src/executor.rs b/crates/gpui/src/executor.rs index c57cafde87f26b21ec8d432a623dba442d277008..eb16cbd9a0bce1cc2444167cc793e1c8d55b7053 100644 --- a/crates/gpui/src/executor.rs +++ b/crates/gpui/src/executor.rs @@ -1213,25 +1213,4 @@ mod test { let result = background_executor.block(task); assert_eq!(result, None, "Cancelled task should return None"); } - - #[test] - fn test_app_liveness_token_can_be_dropped_on_background_thread() { - let dispatcher = Arc::new(TestDispatcher::new(StdRng::seed_from_u64(0))); - let background_executor = BackgroundExecutor::new(dispatcher.clone()); - let foreground_executor = ForegroundExecutor::new(dispatcher); - - let platform = TestPlatform::new(background_executor, foreground_executor); - let asset_source = Arc::new(()); - let http_client = http_client::FakeHttpClient::with_404_response(); - - let app = App::new_app(platform, asset_source, http_client); - let liveness_token = std::sync::Arc::downgrade(&app.borrow().liveness); - - // Dispatcher is single threaded when testing, so we need to spawn a real thread - std::thread::spawn(move || { - drop(liveness_token); - }) - .join() - .expect("Dropping Weak<()> on background thread should not panic"); - } }