fix: override cookie settings in tests in a separate thread to not delete its value for other tests
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2024-07-11 02:25:23 +05:30
parent 4750ab254b
commit 0f3bf764b6
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -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();
}
}