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

Add Weightless benchmark bailing #12829

Merged
merged 4 commits into from
Dec 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
🤦
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez committed Dec 2, 2022
commit a7ecf5bfb854cd6876f9074c797978c7a28cdc2e
6 changes: 2 additions & 4 deletions frame/benchmarking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1814,12 +1814,10 @@ macro_rules! add_benchmark {
$crate::str::from_utf8(benchmark)
.expect("benchmark name is always a valid string!")
);
let dummy = $crate::BenchmarkResult {
Some(vec![$crate::BenchmarkResult {
components: selected_components.clone(),
.. Default::default()
};
// The linear regression logic needs at least two values.
Some(vec![dummy])
}])
}
};

Expand Down