fix: override cookie settings in tests in a separate thread to not delete its value for other tests
This commit is contained in:
parent
4750ab254b
commit
0f3bf764b6
1 changed files with 11 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue