Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Referendum alarm, test #12818

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

muharem
Copy link
Contributor

@muharem muharem commented Dec 1, 2022

Addition to #12815

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Dec 1, 2022
let when = now + 1;
let (actual, _) = Referenda::set_alarm(call.clone(), when).unwrap();
assert!(actual >= when);
assert!(actual - interval <= when);
Copy link
Contributor Author

@muharem muharem Dec 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to make sure this what we want, the growth less than interval

@gavofyork gavofyork merged commit 797caaf into gav-fix-referenda-alarm Dec 1, 2022
@gavofyork gavofyork deleted the muharem-fix-referenda-alarm branch December 1, 2022 14:49
gavofyork added a commit that referenced this pull request Dec 2, 2022
* Fix quantization in referenda alarm

* Formatting

* alarm interval, test (#12818)

Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com>
ltfschoen pushed a commit to ltfschoen/substrate that referenced this pull request Feb 22, 2023
* Fix quantization in referenda alarm

* Formatting

* alarm interval, test (paritytech#12818)

Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Fix quantization in referenda alarm

* Formatting

* alarm interval, test (paritytech#12818)

Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants