Skip to content

Commit

Permalink
Fuzz testing for nomination pools (paritytech#12002)
Browse files Browse the repository at this point in the history
* some additional tests and stuff

* make sanity public

* add some sort of fuzz test for pools

* breaks every now and then

* breaks every now and then

* IT WORKS AND PASSES 100k TESTS

* cleanup

* safe id addition

* fix assert_eq_error_rate

* Update frame/nomination-pools/src/tests.rs

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update frame/nomination-pools/src/tests.rs

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* add some doc

* Fix

* ".git/.scripts/fmt.sh" 1

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
  • Loading branch information
2 people authored and ark0f committed Feb 27, 2023
1 parent 9d1548e commit 453a0b6
Show file tree
Hide file tree
Showing 8 changed files with 647 additions and 65 deletions.
77 changes: 34 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions frame/nomination-pools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ log = { version = "0.4.0", default-features = false }
[dev-dependencies]
pallet-balances = { version = "4.0.0-dev", path = "../balances" }
sp-tracing = { version = "5.0.0", path = "../../primitives/tracing" }
rand = { version = "0.8.5", features = ["small_rng"] }

[features]
runtime-benchmarks = []
try-runtime = [ "frame-support/try-runtime" ]
fuzz-test = []
default = ["std"]
std = [
"codec/std",
Expand Down
Loading

0 comments on commit 453a0b6

Please sign in to comment.