Skip to content

Commit

Permalink
test clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
haider-rs committed Feb 17, 2025
1 parent 94c66be commit 15e6fd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/tasks/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,12 @@ fn test_restart_failed_batch() {
roll(1);
let submitter = Tasks::get_task_submitter(initial_task_id).unwrap();
submit_submission_error(submitter, initial_task_id, "batch failed");
assert!(FailedBatchIds::<Test>::contains_key(&batch_id));
assert!(FailedBatchIds::<Test>::contains_key(batch_id));
assert_ok!(Tasks::restart_batch(RawOrigin::Root.into(), batch_id));
let new_task_id = 3;
assert_eq!(Tasks::get_task(new_task_id), Some(Task::SubmitGatewayMessage { batch_id }));
assert_eq!(BatchTaskId::<Test>::get(batch_id), Some(new_task_id));
assert!(!FailedBatchIds::<Test>::contains_key(&batch_id));
assert!(!FailedBatchIds::<Test>::contains_key(batch_id));
assert!(Tasks::get_task_result(initial_task_id).is_some());
let event = System::events().into_iter().find_map(|r| {
if let RuntimeEvent::Tasks(Event::BatchRestarted(old, new)) = r.event {
Expand Down

0 comments on commit 15e6fd8

Please sign in to comment.