keymgr: Fix wrong_key_type test.

The string representation of `SshKeyAlgorithm` on `main` changed between
the time the tests were introduced and the time they were merged.
This commit is contained in:
Gabriela Moldovan 2023-06-29 15:21:27 +01:00
parent 930ecc9eda
commit 4941a88494
1 changed files with 5 additions and 1 deletions

View File

@ -220,7 +220,11 @@ mod tests {
assert_eq!(
err.to_string(),
"Unexpected OpenSSH key type: wanted ssh-ed25519, found ssh-dss"
format!(
"Unexpected OpenSSH key type: wanted {}, found {}",
SshKeyAlgorithm::Ed25519,
SshKeyAlgorithm::Dsa
)
);
}