Made modifications to the test and related code

This commit is contained in:
2025-10-10 13:58:29 -04:00
parent a7a2a8080e
commit d9e43a80e4
2 changed files with 7 additions and 2 deletions

View File

@@ -90,7 +90,10 @@ pub async fn get_allowed_origins() -> crate::EnvVar {
let key = crate::keys::ALLOWED_ORIGINS;
let value = std::env::var(key).expect(key);
crate::init_envvar(key, &value)
let mut envvar = crate::init_envvar(key, &value);
crate::init_delimiter(&mut envvar, ',');
envvar
}
/// Get environment not specified in the code

View File

@@ -114,7 +114,9 @@ mod tests {
"{} does not match {:?}",
icarus_envy::keys::ALLOWED_ORIGINS,
result
)
);
assert_eq!(result.has_delimiter, true, "The {} variable has an issue finding the delimiter", result.key)
}
#[test]