More temporary directory fixes

pull/6/head
Bradlee Speice 2019-10-07 07:34:00 -04:00
parent 1a3d67f02c
commit 2b8e32abb7
2 changed files with 4 additions and 3 deletions

View File

@ -87,9 +87,8 @@ mod tests {
fn read_cnc_version() {
let temp_dir = tempdir().unwrap();
let dir = temp_dir.path().to_path_buf();
temp_dir.close();
temp_dir.close().unwrap();
let dir = tempdir().unwrap().into_path();
let _driver = DriverContext::default()
.set_aeron_dir(&dir)
.build()

View File

@ -79,7 +79,9 @@ fn driver_thread(aeron_dir: PathBuf) {
#[test]
fn cnc_terminate() {
let dir = tempdir().unwrap().into_path();
let temp_dir = tempdir().unwrap();
let dir = temp_dir.path().to_path_buf();
temp_dir.close().unwrap();
// Start up the media driver
let driver_dir = dir.clone();