Skip to content

Commit

Permalink
chore: Change keystore test
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Jun 4, 2024
1 parent 6bb4552 commit 927a506
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/keystore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ mod test {
}

#[tokio::test]
async fn keystore_key_exist() -> anyhow::Result<()> {
async fn keystore_replace_existing() -> anyhow::Result<()> {
let keystore = Keystore::in_memory();
keystore.generate_ed25519(Some("primary")).await?;
let result = keystore.generate_ed25519(Some("primary")).await;
assert!(result.is_err());
let public_key_1 = keystore.generate_ed25519(Some("primary")).await?;
let public_key_2 = keystore.generate_ed25519(Some("primary")).await?;
assert_ne!(public_key_1, public_key_2);
Ok(())
}

Expand Down

0 comments on commit 927a506

Please sign in to comment.