Skip to content

Commit

Permalink
Replaced wait with exit
Browse files Browse the repository at this point in the history
  • Loading branch information
mqxf committed Dec 3, 2023
1 parent ce6d216 commit 0a11783
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions pallets/gear/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15103,7 +15103,7 @@ fn test_constructor_if_else() {
.if_else(
Arg::get("switch"),
Calls::builder().wait_for(1),
Calls::builder().wait(),
Calls::builder().exit(<[u8; 32]>::from(USER_1.into_origin())),
);

let scheme = Scheme::predefined(init, handle, Default::default(), Default::default());
Expand Down Expand Up @@ -15148,15 +15148,7 @@ fn test_constructor_if_else() {

run_to_next_block(None);

assert!(WaitlistOf::<Test>::contains(&pid, &mid));
assert!(!TaskPoolOf::<Test>::contains(
&(Gear::block_number()),
&task
));
assert!(!TaskPoolOf::<Test>::contains(
&(Gear::block_number() + 1),
&task
));
assert!(!WaitlistOf::<Test>::contains(&pid, &mid));
});
}

Expand Down

0 comments on commit 0a11783

Please sign in to comment.