Skip to content

Commit

Permalink
Bump chrono and fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirreke committed Mar 11, 2024
1 parent 0b8f045 commit 1db83e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ harness = false

[dependencies]
arc-swap = "1.6"
chrono = { version = "0.4.23", optional = true, features = ["clock"], default-features = false }
chrono = { version = "0.4.35", optional = true, features = ["clock"], default-features = false }
flate2 = { version = "1.0", optional = true }
fnv = "1.0"
humantime = { version = "2.1", optional = true }
Expand Down
5 changes: 4 additions & 1 deletion src/append/rolling_file/policy/compound/trigger/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ mod test {
use super::*;
use mock_instant::MockClock;
use std::time::Duration;
use std::error::Error as StdError;

fn trigger_with_time_and_modulate(
interval: TimeTriggerInterval,
Expand Down Expand Up @@ -533,7 +534,9 @@ mod test {
};

let trigger = TimeTrigger::new(interval, false, 0);
trigger.trigger(&logfile).unwrap_err();
let error = trigger.trigger(&logfile).unwrap_err();
let box_dyn = Box::<dyn StdError>::from(error);
assert_eq!(format!("too large interval in time trigger {:?}", interval), box_dyn.to_string());
}

#[test]
Expand Down

0 comments on commit 1db83e0

Please sign in to comment.