Skip to content

Commit

Permalink
add more assertion to the reconfigure test
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed May 13, 2024
1 parent 9de6d66 commit c854dc9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/governor_test.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -1131,4 +1131,11 @@ fn test_reconfigure_succeeds_self_call() {
assert_eq!(governor.get_config_with_version(), (new_config, 1));
assert_eq!(executed.id, id);
assert_eq!(executed.result_data, array![array![1_felt252].span()].span());

let (_, first_proposal_config) = governor.get_proposal_with_config(id);
assert_eq!(first_proposal_config, config);

let id_next = governor.propose(array![].span());
let (_, next_proposal_config) = governor.get_proposal_with_config(id_next);
assert_eq!(next_proposal_config, new_config);
}

0 comments on commit c854dc9

Please sign in to comment.