diff --git a/actix-session/src/storage/sled.rs b/actix-session/src/storage/sled.rs index 2e9d5ae9c..077e45fea 100644 --- a/actix-session/src/storage/sled.rs +++ b/actix-session/src/storage/sled.rs @@ -129,7 +129,7 @@ mod tests { SledSessionStore::new( [ - env!("CARGO_TARGET_DIR"), + option_env!("CARGO_TARGET_DIR").unwrap_or("target"), "/tmp-actix-session-tests/", &db_name, "-",