-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
Seems that env vars that are substrings of a subsequent env var are overwriting the later variable.
If I use this in my tests:
env_to_nginx("COOKIE_SECRET=secret", "COOKIE_SECRET_ALT=alt");
then the "COOKIE_SECRET_ALT" value is "secret" in the code.
If I reverse the order to:
env_to_nginx("COOKIE_SECRET_ALT=alt", "COOKIE_SECRET=secret");
then it works as expected in the code. (So I do have a workaround, this is a minor inconvenience that wasted a few hours of my day)
This also happens if I put them as "env" directives in a main_config override section of the test.
This does NOT happen outside of tests when running the app. The env vars can be in any order and still work.
Metadata
Metadata
Assignees
Labels
No labels