mirror of
https://github.com/bspeice/aeron-rs
synced 2025-01-21 19:40:03 -05:00
More temporary directory fixes
This commit is contained in:
parent
1a3d67f02c
commit
2b8e32abb7
@ -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()
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user