From 199365310248eecedf8fbad579fc0cdc2e47bbe7 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Tue, 6 Feb 2024 17:47:00 +0000 Subject: fix(tests): add Settings::utc() for utc settings (#1677) Means we don't try and load timezones in tests, as this fails due to multiple threads. Also allow specifying '0' or 'utc' as a timezone --- atuin-client/src/history.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'atuin-client/src/history.rs') diff --git a/atuin-client/src/history.rs b/atuin-client/src/history.rs index 0147e25b..3dfa5c52 100644 --- a/atuin-client/src/history.rs +++ b/atuin-client/src/history.rs @@ -362,7 +362,7 @@ mod tests { let settings = Settings { cwd_filter: RegexSet::new(["^/supasecret"]).unwrap(), history_filter: RegexSet::new(["^psql"]).unwrap(), - ..Settings::default() + ..Settings::utc() }; let normal_command: History = History::capture() @@ -411,7 +411,7 @@ mod tests { fn disable_secrets() { let settings = Settings { secrets_filter: false, - ..Settings::default() + ..Settings::utc() }; let stripe_key: History = History::capture() -- cgit v1.3.1