test and fix #282

Sessions' last use updates weren't getting persisted to the database
because the update statement wasn't passing through the hash.

Also address a TODO of tracing in tests by using the same tracing
setup as in production.
This commit is contained in:
Scott Lamb
2023-07-04 20:42:15 -07:00
parent 028243532a
commit aa60bc991c
8 changed files with 64 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ pub const TEST_VIDEO_SAMPLE_ENTRY_DATA: &[u8] =
/// * use a fast but insecure password hashing format.
pub fn init() {
INIT.call_once(|| {
// TODO: tracing setup.
base::tracing_setup::install();
env::set_var("TZ", "America/Los_Angeles");
time::tzset();
crate::auth::set_test_config();