Skip to content

Commit 59a3a56

Browse files
alphaqiuclaude
andcommitted
fix: use PlatformError instead of keyring_cli::Error in test
The test was using keyring_cli::Error which doesn't exist. Changed to use PlatformError which is the correct error type for the protect_memory function. Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
1 parent 6aa7cc1 commit 59a3a56

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(keyring_cli::Error::Internal { .. })),
201+
matches!(result, Err(PlatformError::Internal { .. })),
202202
"protect_memory should fail with invalid length on Windows"
203203
);
204204
}

0 commit comments

Comments
 (0)