Skip to content

Commit

Permalink
Fix tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Nov 26, 2024
1 parent bb580f0 commit ce26892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bitwarden-ssh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ mod tests {
let rng = rand_chacha::ChaCha12Rng::from_seed([0u8; 32]);
let key_algorithm = KeyAlgorithm::Ed25519;
let result = generate_sshkey_internal(key_algorithm, rng);
let target = include_str!("../tests/ed25519_key");
let target = include_str!("../tests/ed25519_key").replace("\r\n", "\n");
assert_eq!(result.unwrap().private_key, target);
}

Expand All @@ -85,7 +85,7 @@ mod tests {
let rng = rand_chacha::ChaCha12Rng::from_seed([0u8; 32]);
let key_algorithm = KeyAlgorithm::Rsa3072;
let result = generate_sshkey_internal(key_algorithm, rng);
let target = include_str!("../tests/rsa3072_key");
let target = include_str!("../tests/rsa3072_key").replace("\r\n", "\n");
assert_eq!(result.unwrap().private_key, target);
}

Expand All @@ -94,7 +94,7 @@ mod tests {
let rng = rand_chacha::ChaCha12Rng::from_seed([0u8; 32]);
let key_algorithm = KeyAlgorithm::Rsa4096;
let result = generate_sshkey_internal(key_algorithm, rng);
let target = include_str!("../tests/rsa4096_key");
let target = include_str!("../tests/rsa4096_key").replace("\r\n", "\n");
assert_eq!(result.unwrap().private_key, target);
}
}

0 comments on commit ce26892

Please sign in to comment.