Fix Benchmarks to enable batch run (#5523)

* some fixes

* Update tips benchmark to be resiliant to genesis

* Update Cargo.lock
This commit is contained in:
Shawn Tabrizi
2020-04-05 14:27:17 +02:00
committed by GitHub
parent d155a9d97d
commit 392571d78c
3 changed files with 17 additions and 10 deletions
@@ -111,14 +111,15 @@ benchmarks! {
second {
let s in 0 .. MAX_SECONDERS;
let caller = funded_account::<T>("caller", 0);
let proposal_hash = add_proposal::<T>(s)?;
// Create s existing "seconds"
for i in 0 .. s {
let seconder = funded_account::<T>("seconder", i);
Democracy::<T>::second(RawOrigin::Signed(seconder).into(), 0)?;
}
let caller = funded_account::<T>("caller", 0);
let proposal_hash = add_proposal::<T>(s)?;
}: _(RawOrigin::Signed(caller), 0)
vote {