Skip to content

Commit

Permalink
Add 'update_percet' method
Browse files Browse the repository at this point in the history
  • Loading branch information
rustworthy committed Feb 2, 2024
1 parent d745549 commit 54f78f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/real/enterprise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,7 @@ fn test_tracker_can_send_and_retrieve_job_execution_progress() {
_ => panic!("expected job's state to be 'working'"),
}
assert!(result.updated_at.is_some());
assert_eq!(result.desc, Some("Still processing...".to_owned()));
assert_eq!(result.percent, Some(32));
assert_eq!(result.percent, Some(33));
// considering the job done
Ok(eprintln!("{:?}", job))
});
Expand Down Expand Up @@ -538,6 +537,7 @@ fn test_tracker_can_send_and_retrieve_job_execution_progress() {

if progress.percent != Some(100) {
let upd = progress.update_percent(100);
assert_eq!(upd.desc, progress.desc);
assert!(t.lock().unwrap().set_progress(upd).is_ok())
}
}
Expand Down

0 comments on commit 54f78f6

Please sign in to comment.