You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if cycle_start_time.duration_since(loser_since.unwrap_or(SystemTime::UNIX_EPOCH)).expect("time ran backwards") < loser_timeout {
613
+
Role::Loser
614
+
}else{
615
+
Role::Searcher
616
+
}
617
+
},
600
618
601
619
// Loser found ball and becomes Striker
602
620
(Role::Loser,true,Event::None) => Role::Striker,
@@ -895,9 +913,11 @@ mod test {
895
913
filtered_game_controller_state in prop_oneof![Just(None),Just(Some(FilteredGameControllerState{game_phase:GamePhase::PenaltyShootout{kicking_team:Team::Hulks}, ..Default::default()}))],
896
914
player_number in Just(PlayerNumber::Five),
897
915
maximum_trusted_team_ball_age in Just(Duration::from_secs(5)),
916
+
loser_timeout in Just(Duration::from_secs(5)),
898
917
claim_striker_from_team_ball:bool,
899
918
optional_roles in Just(&[Role::DefenderLeft,Role::StrikerSupporter])
900
919
){
920
+
let loser_since = Some(cycle_start_time - Duration::from_secs(4));
901
921
let filtered_game_controller_state:Option<FilteredGameControllerState> = filtered_game_controller_state;
0 commit comments