mirror of
https://github.com/agersant/polaris
synced 2024-11-10 10:14:12 +00:00
Allow tests to compile
This commit is contained in:
parent
32a808b962
commit
b190385dbd
1 changed files with 5 additions and 1 deletions
|
@ -50,13 +50,17 @@ fn get_test_environment(db_name: &str) -> TestEnvironment {
|
|||
let db = Arc::new(db::DB::new(&db_path).unwrap());
|
||||
|
||||
let web_dir_path = PathBuf::from("web");
|
||||
let mut swagger_dir_path = PathBuf::from("docs");
|
||||
swagger_dir_path.push("swagger");
|
||||
let command_sender = index::init(db.clone());
|
||||
|
||||
let server = server::get_server(
|
||||
5050,
|
||||
"/",
|
||||
"/api",
|
||||
"/",
|
||||
&web_dir_path,
|
||||
"/swagger",
|
||||
&swagger_dir_path,
|
||||
db.clone(),
|
||||
command_sender.clone(),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue