Fix more tests

This commit is contained in:
Brian Picciano 2023-07-03 13:23:07 +02:00
parent bd96581c6a
commit fa85fe7fd8
3 changed files with 5 additions and 5 deletions

View File

@ -233,7 +233,7 @@ mod tests {
#[test]
fn account_key() {
let tmp_dir = TempDir::new("domain_acme_store_account_key").unwrap();
let store = new(tmp_dir.path()).expect("store created");
let store = FSStore::new(tmp_dir.path()).expect("store created");
assert!(matches!(
store.get_account_key(),
@ -255,7 +255,7 @@ mod tests {
#[test]
fn http01_challenge_key() {
let tmp_dir = TempDir::new("domain_acme_store_http01_challenge_key").unwrap();
let store = new(tmp_dir.path()).expect("store created");
let store = FSStore::new(tmp_dir.path()).expect("store created");
let token = "foo".to_string();
let key = "bar".to_string();

View File

@ -116,7 +116,7 @@ impl Store for FSStore {
#[cfg(test)]
mod tests {
use super::*;
use super::{Store, *};
use crate::domain;
use crate::origin::Descr;
@ -128,7 +128,7 @@ mod tests {
fn basic() {
let tmp_dir = TempDir::new("domain_config_store").unwrap();
let store = new(tmp_dir.path()).expect("store created");
let store = FSStore::new(tmp_dir.path()).expect("store created");
let domain = domain::Name::from_str("foo.com").expect("domain parsed");

View File

@ -323,7 +323,7 @@ impl super::Store for FSStore {
#[cfg(test)]
mod tests {
use crate::origin::{self, store};
use crate::origin::{self, store, store::Store};
use tempdir::TempDir;
#[test]