Companion PR for #5436/#5445 + #5463 (#948)

* Use `add_benchmark` macro

* Return error if `batches` is empty

* Update Cargo.lock

* Companion for #5463 (#953)

* Fix test with genesis block 0

* Update Cargo.lock
This commit is contained in:
Shawn Tabrizi
2020-03-31 20:14:44 +02:00
committed by GitHub
parent 21bd2f19d3
commit 5a84c64507
4 changed files with 257 additions and 259 deletions
+1 -1
View File
@@ -787,7 +787,7 @@ mod tests {
#[test]
fn basic_setup_works() {
new_test_ext().execute_with(|| {
assert_eq!(System::block_number(), 1);
assert_eq!(System::block_number(), 0);
assert_eq!(Crowdfund::fund_count(), 0);
assert_eq!(Crowdfund::funds(0), None);
let empty: Vec<FundIndex> = Vec::new();