diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-02-06 17:47:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-06 17:47:00 +0000 |
| commit | 199365310248eecedf8fbad579fc0cdc2e47bbe7 (patch) | |
| tree | 0380b351a55291df39dcb8c7af324e4bc5786365 /atuin-client/src/history.rs | |
| parent | Add timezone configuration option & CLI overrides (#1517) (diff) | |
| download | atuin-199365310248eecedf8fbad579fc0cdc2e47bbe7.zip | |
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
Diffstat (limited to 'atuin-client/src/history.rs')
| -rw-r--r-- | atuin-client/src/history.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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() |
