Skip to content

Commit

Permalink
Fix panic message test
Browse files Browse the repository at this point in the history
  • Loading branch information
van-sprundel committed Oct 13, 2024
1 parent 938ee09 commit 04d14d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ntp-proto/src/algorithm/kalman/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ mod tests {
}

#[test]
#[should_panic(expected = "Couldn't create controller.")]
#[should_panic(expected = "Threshold exceeded")]
fn jumps_add_absolutely() {
let synchronization_config = SynchronizationConfig {
minimum_agreeing_sources: 1,
Expand Down Expand Up @@ -682,7 +682,7 @@ mod tests {
}

#[test]
#[should_panic(expected = "Couldn't create controller.")]
#[should_panic(expected = "Threshold exceeded")]
fn test_large_offset_eventually_panics() {
let synchronization_config = SynchronizationConfig {
minimum_agreeing_sources: 1,
Expand Down Expand Up @@ -739,7 +739,7 @@ mod tests {
}

#[test]
#[should_panic(expected = "Couldn't create controller.")]
#[should_panic(expected = "Threshold exceeded")]
fn test_backward_step_panics_before_steer() {
let synchronization_config = SynchronizationConfig {
minimum_agreeing_sources: 1,
Expand Down

0 comments on commit 04d14d5

Please sign in to comment.