Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion substrate/frame/scheduler/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2285,9 +2285,18 @@ fn postponed_named_task_cannot_be_rescheduled() {

// Run to a very large block.
run_to_block(10);

// It was not executed.
assert!(logger::log().is_empty());
assert!(Preimage::is_requested(&hash));

// Preimage was not available
assert_eq!(
System::events().last().unwrap().event,
crate::Event::CallUnavailable { task: (4, 0), id: Some(name) }.into()
);

// So it should not be requested.
assert!(!Preimage::is_requested(&hash));
Comment thread
sandreim marked this conversation as resolved.
// Postponing removes the lookup.
assert!(!Lookup::<Test>::contains_key(name));

Expand Down