Cover command monitor timer states
This commit is contained in:
@@ -127,6 +127,26 @@ fn automatic_command_monitor_start_is_deduplicated_per_block() {
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn command_monitor_start_status_handles_timer_races() {
|
||||
assert_eq!(
|
||||
super::command_monitor_start_status(true, true, true, true),
|
||||
super::CommandMonitorStartStatus::AlreadyMonitoring
|
||||
);
|
||||
assert_eq!(
|
||||
super::command_monitor_start_status(false, false, true, false),
|
||||
super::CommandMonitorStartStatus::WaitingForThreshold
|
||||
);
|
||||
assert_eq!(
|
||||
super::command_monitor_start_status(false, true, false, false),
|
||||
super::CommandMonitorStartStatus::Ready
|
||||
);
|
||||
assert_eq!(
|
||||
super::command_monitor_start_status(false, false, false, false),
|
||||
super::CommandMonitorStartStatus::NoLongerEligible
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn agent_view_lifecycle_updates_input_mode() {
|
||||
App::test((), |mut app| async move {
|
||||
|
||||
Reference in New Issue
Block a user