test: update worker state fixtures

This commit is contained in:
2026-10-04 13:49:12 +09:00
parent d8f3e46126
commit 8ad52e36c1
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -3761,6 +3761,7 @@ mod completion_flow_tests {
protocol::WorkerRunState::Running,
)),
last_command_id: 0,
last_finished_submission_request_id: None,
};
app.handle_worker_event(Event::WorkerState {
snapshot: running.clone(),
@@ -3780,6 +3781,7 @@ mod completion_flow_tests {
protocol::WorkerRunState::Running,
)),
last_command_id: 2,
last_finished_submission_request_id: Some("request-old".to_string()),
};
app.handle_worker_event(Event::WorkerState {
snapshot: running.clone(),
@@ -3789,6 +3791,7 @@ mod completion_flow_tests {
let fresh_idle = WorkerStateSnapshot {
state: protocol::WorkerState::Idle,
last_command_id: 0,
last_finished_submission_request_id: None,
};
app.handle_worker_event(Event::WorkerState {
snapshot: fresh_idle.clone(),
@@ -3800,6 +3803,7 @@ mod completion_flow_tests {
protocol::WorkerRunState::Paused,
)),
last_command_id: 3,
last_finished_submission_request_id: None,
};
app.handle_worker_event(Event::CommandAcknowledged {
acknowledgement: protocol::WorkerCommandAcknowledgement {
+2
View File
@@ -579,6 +579,7 @@ mod tests {
protocol::WorkerRunState::Running,
)),
last_command_id: 0,
last_finished_submission_request_id: None,
}),
last_seen_at: None,
pinned: false,
@@ -869,6 +870,7 @@ mod tests {
short.worker_state = Some(protocol::WorkerStateSnapshot {
state: protocol::WorkerState::Idle,
last_command_id: 0,
last_finished_submission_request_id: None,
});
let mut long = worker("runtime-a", "worker-b", None);