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
Prev Previous commit
Call note_preimage extrinsic instead via trait
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
  • Loading branch information
sandreim committed Apr 1, 2024
commit 5d3b5adaf99324ce04ce420a290033d0b543232d
5 changes: 3 additions & 2 deletions substrate/frame/scheduler/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2316,11 +2316,12 @@ fn postponed_named_task_cannot_be_rescheduled() {
);

// Finally add the preimage.
assert_ok!(Preimage::note(call.encode().into()));
assert_ok!(Preimage::note_preimage(RuntimeOrigin::signed(0), call.encode()));

run_to_block(1000);
// It did not execute.
assert!(logger::log().is_empty());
assert!(Preimage::is_requested(&hash));
assert!(!Preimage::is_requested(&hash));

// Manually re-schedule the call by name does not work.
assert_err!(
Expand Down