1
0
mirror of https://github.com/bspeice/aeron-rs synced 2024-10-17 23:51:38 -04:00

More temporary directory fixes

This commit is contained in:
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() { fn read_cnc_version() {
let temp_dir = tempdir().unwrap(); let temp_dir = tempdir().unwrap();
let dir = temp_dir.path().to_path_buf(); 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() let _driver = DriverContext::default()
.set_aeron_dir(&dir) .set_aeron_dir(&dir)
.build() .build()

View File

@ -79,7 +79,9 @@ fn driver_thread(aeron_dir: PathBuf) {
#[test] #[test]
fn cnc_terminate() { 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 // Start up the media driver
let driver_dir = dir.clone(); let driver_dir = dir.clone();