Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Mar 17, 2024
1 parent b3e53de commit 0c642db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/tests/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ mod suspend_resume {
server.close().await.unwrap();

assert_eq!(
json!({"error": {"name": "Canceled", "reason": "approval request disapproved", "message": "Job canceled: approval request disapproved by ruben", "canceler": "ruben"}}),
json!( {"error": {"name": "SuspendedDisapproved", "message": "Disapproved by None"}}),
result
);
}
Expand Down Expand Up @@ -428,7 +428,7 @@ mod suspend_resume {
let result = completed_job(flow, &db).await.json_result().unwrap();

assert_eq!(
json!( {"error": {"name": "Canceled", "reason": "approval request disapproved", "message": "Job canceled: approval request disapproved by unknown", "canceler": "unknown"}}),
json!( {"error": {"name": "SuspendedDisapproved", "message": "Disapproved by Some(\"ruben\")"}}),
result
);
}
Expand Down

0 comments on commit 0c642db

Please sign in to comment.