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
|
server.hostname
|
||||||
);
|
);
|
||||||
env_helper!(init_settings, "VANIKAM_server_IP", "1.1.1.1", server.ip);
|
env_helper!(init_settings, "VANIKAM_server_IP", "1.1.1.1", server.ip);
|
||||||
env_helper!(
|
std::thread::spawn(move || {
|
||||||
init_settings,
|
env_helper!(
|
||||||
"VANIKAM_server_COOKIE_SECRET",
|
init_settings,
|
||||||
"asdfasdflkjhasdlkfhalksdf",
|
"VANIKAM_server_COOKIE_SECRET",
|
||||||
server.cookie_secret
|
"asdfasdflkjhasdlkfhalksdf",
|
||||||
);
|
server.cookie_secret
|
||||||
|
);
|
||||||
|
assert!(true);
|
||||||
|
})
|
||||||
|
.join()
|
||||||
|
.unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue