|
|
@ -929,7 +929,6 @@ impl Write for ReadForWriteWriter { |
|
|
|
mod tests { |
|
|
|
mod tests { |
|
|
|
use super::*; |
|
|
|
use super::*; |
|
|
|
use oxhttp::model::Method; |
|
|
|
use oxhttp::model::Method; |
|
|
|
use tempfile::{tempdir, TempDir}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
#[test] |
|
|
|
fn get_ui() { |
|
|
|
fn get_ui() { |
|
|
@ -1432,14 +1431,13 @@ mod tests { |
|
|
|
|
|
|
|
|
|
|
|
struct ServerTest { |
|
|
|
struct ServerTest { |
|
|
|
store: Store, |
|
|
|
store: Store, |
|
|
|
_path: TempDir, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
impl ServerTest { |
|
|
|
impl ServerTest { |
|
|
|
fn new() -> ServerTest { |
|
|
|
fn new() -> Self { |
|
|
|
let path = tempdir().unwrap(); |
|
|
|
Self { |
|
|
|
let store = Store::open(path.path()).unwrap(); |
|
|
|
store: Store::new().unwrap(), |
|
|
|
ServerTest { _path: path, store } |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fn exec(&self, mut request: Request) -> Response { |
|
|
|
fn exec(&self, mut request: Request) -> Response { |
|
|
|