Skip to content

Commit

Permalink
core::user > fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
canewsin committed Jan 22, 2024
1 parent 8ab23fe commit 0b647b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ mod tests {
#[test]
fn test_set_cert() {
let mut user = User::from_seed(SEED.to_string());
user.get_site_data(EXAMPLE_SITE, true);

user.set_cert(EXAMPLE_SITE, Some(CERT_DOMAIN));
let result = user.get_site_data(EXAMPLE_SITE, false);
Expand All @@ -591,6 +592,7 @@ mod tests {
#[test]
fn test_get_auth_privkey_with_cert() {
let mut user = User::from_seed(SEED.to_string());
user.get_site_data(EXAMPLE_SITE, true);

user.set_cert(EXAMPLE_SITE, Some(CERT_DOMAIN));

Expand Down

0 comments on commit 0b647b8

Please sign in to comment.