From eefc36fb74007bf298e776551e60f6226fb405a7 Mon Sep 17 00:00:00 2001 From: kirawi <67773714+kirawi@users.noreply.github.com> Date: Mon, 18 Nov 2024 16:36:23 -0500 Subject: [PATCH] remove ownership test --- helix-term/tests/test/commands/write.rs | 26 ------------------------- 1 file changed, 26 deletions(-) diff --git a/helix-term/tests/test/commands/write.rs b/helix-term/tests/test/commands/write.rs index b9b9c27b7..336ab2ab8 100644 --- a/helix-term/tests/test/commands/write.rs +++ b/helix-term/tests/test/commands/write.rs @@ -687,32 +687,6 @@ async fn test_hardlink_write() -> anyhow::Result<()> { Ok(()) } -#[tokio::test(flavor = "multi_thread")] -#[cfg(unix)] -async fn test_write_ownership() -> anyhow::Result<()> { - use std::os::unix::fs::MetadataExt; - - let mut file = tempfile::NamedTempFile::new()?; - let mut app = helpers::AppBuilder::new() - .with_file(file.path(), None) - .build()?; - - let nobody_uid = 65534; - let nogroup_gid = 65534; - - helix_stdx::faccess::fchown(&file.as_file_mut(), Some(nobody_uid), Some(nogroup_gid))?; - - let old_meta = file.as_file().metadata()?; - - test_key_sequence(&mut app, Some("hello:w"), None, false).await?; - reload_file(&mut file).unwrap(); - - let new_meta = file.as_file().metadata()?; - assert!(old_meta.uid() == new_meta.uid() && old_meta.gid() == new_meta.gid()); - - Ok(()) -} - async fn edit_file_with_content(file_content: &[u8]) -> anyhow::Result<()> { let mut file = tempfile::NamedTempFile::new()?;