mirror of
https://github.com/bspeice/aeron-rs
synced 2024-12-22 05:48:10 -05:00
Fix issues with delete on start
Seems like Windows doesn't handle it properly?
This commit is contained in:
parent
7e8f49c347
commit
2cd2ae9995
@ -85,10 +85,13 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn read_cnc_version() {
|
fn read_cnc_version() {
|
||||||
|
let temp_dir = tempdir().unwrap();
|
||||||
|
let dir = temp_dir.path().to_path_buf();
|
||||||
|
temp_dir.close();
|
||||||
|
|
||||||
let dir = tempdir().unwrap().into_path();
|
let dir = tempdir().unwrap().into_path();
|
||||||
let _driver = DriverContext::default()
|
let _driver = DriverContext::default()
|
||||||
.set_aeron_dir(&dir)
|
.set_aeron_dir(&dir)
|
||||||
.set_dir_delete_on_start(true)
|
|
||||||
.build()
|
.build()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
@ -171,10 +171,12 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn multiple_startup_failure() {
|
fn multiple_startup_failure() {
|
||||||
let dir = tempdir().unwrap().into_path();
|
let temp_dir = tempdir().unwrap();
|
||||||
|
let dir = temp_dir.path().to_path_buf();
|
||||||
|
temp_dir.close();
|
||||||
|
|
||||||
let driver = DriverContext::default()
|
let driver = DriverContext::default()
|
||||||
.set_aeron_dir(&dir)
|
.set_aeron_dir(&dir)
|
||||||
.set_dir_delete_on_start(true)
|
|
||||||
.build()
|
.build()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
@ -207,12 +209,12 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn single_duty_cycle() {
|
fn single_duty_cycle() {
|
||||||
let tempdir = tempfile::tempdir().unwrap();
|
let temp_dir = tempdir().unwrap();
|
||||||
let path = tempdir.into_path();
|
let path = temp_dir.path().to_path_buf();
|
||||||
|
tempdir.close();
|
||||||
|
|
||||||
let driver = DriverContext::default()
|
let driver = DriverContext::default()
|
||||||
.set_aeron_dir(&path)
|
.set_aeron_dir(&path)
|
||||||
.set_dir_delete_on_start(true)
|
|
||||||
.build()
|
.build()
|
||||||
.expect("Unable to create media driver")
|
.expect("Unable to create media driver")
|
||||||
.start()
|
.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user