diff --git a/Makefile b/Makefile index ce60493..5329bf1 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,8 @@ run: default ## Run debug build test: ## Run tests #$(call cache_bust) - cargo test --all-features --no-fail-fast + cargo test --all-features --no-fail-fast -- --skip test_server_env_override + cargo test --all-features --no-fail-fast -- test_server_env_override #test.coverage.xml: ## Generate cobertura.xml test coverage # #$(call cache_bust) diff --git a/src/settings/server.rs b/src/settings/server.rs index ad3967d..c7f7612 100644 --- a/src/settings/server.rs +++ b/src/settings/server.rs @@ -58,11 +58,16 @@ mod tests { server.hostname ); env_helper!(init_settings, "VANIKAM_server_IP", "1.1.1.1", server.ip); - env_helper!( - init_settings, - "VANIKAM_server_COOKIE_SECRET", - "asdfasdflkjhasdlkfhalksdf", - server.cookie_secret - ); + std::thread::spawn(move || { + env_helper!( + init_settings, + "VANIKAM_server_COOKIE_SECRET", + "asdfasdflkjhasdlkfhalksdf", + server.cookie_secret + ); + assert!(true); + }) + .join() + .unwrap(); } }