Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 3cbd756

Browse files
authored
fix tests after docker cmd change (#462)
1 parent f2d8ca5 commit 3cbd756

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

crates/worker/src/docker/service.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ impl DockerService {
5858
pub fn generate_task_config_hash(task: &Task) -> u64 {
5959
let mut hasher = DefaultHasher::new();
6060
task.image.hash(&mut hasher);
61-
task.command.hash(&mut hasher);
62-
task.args.hash(&mut hasher);
61+
task.cmd.hash(&mut hasher);
6362

6463
if let Some(env_vars) = &task.env_vars {
6564
let mut sorted_env: Vec<_> = env_vars.iter().collect();
@@ -464,8 +463,8 @@ mod tests {
464463
("VAR_B".to_string(), "value_b".to_string()),
465464
("VAR_C".to_string(), "value_c".to_string()),
466465
])),
467-
command: Some("sleep".to_string()),
468-
args: Some(vec!["5".to_string()]),
466+
cmd: Some(vec!["sleep".to_string(), "5".to_string()]),
467+
entrypoint: None,
469468
state: TaskState::PENDING,
470469
created_at: Utc::now().timestamp_millis(),
471470
volume_mounts: Some(vec![
@@ -495,8 +494,7 @@ mod tests {
495494
("VAR_A".to_string(), "value_a".to_string()),
496495
("VAR_B".to_string(), "value_b".to_string()),
497496
])),
498-
command: Some("sleep".to_string()),
499-
args: Some(vec!["5".to_string()]),
497+
cmd: Some(vec!["sleep".to_string(), "5".to_string()]),
500498
state: TaskState::PENDING,
501499
created_at: Utc::now().timestamp_millis(),
502500
volume_mounts: Some(vec![

0 commit comments

Comments
 (0)