From d9e43a80e4620409d3140adf67cb55c25c936fcf Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 10 Oct 2025 13:58:29 -0400 Subject: [PATCH] Made modifications to the test and related code --- src/environment.rs | 5 ++++- tests/test.rs | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/environment.rs b/src/environment.rs index b0e9972..dc7c48c 100644 --- a/src/environment.rs +++ b/src/environment.rs @@ -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 diff --git a/tests/test.rs b/tests/test.rs index d92de61..62f23ed 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -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]