remove useless tests

This commit is contained in:
Mikayla Maki
2025-12-28 22:51:01 -08:00
parent ae9139ba5a
commit 068d6d814e

View File

@@ -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");
}
}