Skip to content

Commit 06dea5d

Browse files
alphaqiuclaude
andcommitted
fix: correct PlatformError variant in windows test
The protect_memory function returns MemoryProtectionFailed, not Internal. This was causing a compilation error on Windows CI. Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
1 parent 14bcd73 commit 06dea5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/platform_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ fn test_windows_length_validation() {
198198

199199
let result = protect_memory(data.as_mut_ptr(), data.len());
200200
assert!(
201-
matches!(result, Err(PlatformError::Internal { .. })),
201+
matches!(result, Err(PlatformError::MemoryProtectionFailed(_))),
202202
"protect_memory should fail with invalid length on Windows"
203203
);
204204
}

0 commit comments

Comments
 (0)