Skip to content

Commit 2f28ca8

Browse files
committed
fix: update IPC file permissions assertions for Unix and Windows
1 parent d4ac9af commit 2f28ca8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_start_permissions.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ mod tests {
3737

3838
let permision = std::fs::metadata(IPC_PATH).expect("Failed to get metadata");
3939
let permissions = permision.permissions();
40+
#[cfg(unix)]
4041
assert_eq!(permissions.mode() & 0o777, 0o777, "IPC file permissions should be 777");
42+
#[cfg(windows)]
43+
assert!(permissions.readonly() == false, "IPC file should not be readonly");
4144

4245
assert!(
4346
stop_ipc_server().await.is_ok(),

0 commit comments

Comments
 (0)