Skip to content
Snippets Groups Projects
Commit d2ceed94 authored by Pascal Engélibert's avatar Pascal Engélibert :bicyclist: Committed by Hugo Trentesaux
Browse files

cucumber: distance_fail treasury

parent 78c6c744
No related branches found
No related tags found
1 merge request!276Fix distance end2end tests
Pipeline #38018 passed
...@@ -125,7 +125,7 @@ For some scenarios, you may need to perform an action (When) that fails voluntar ...@@ -125,7 +125,7 @@ For some scenarios, you may need to perform an action (When) that fails voluntar
### Run cucumber functional tests ### Run cucumber functional tests
The cucumber tests use the last debug binary in your `target` folder. Make sure this binary corresponds to the executable you want to test by running `cargo build` before. The cucumber tests use the last debug binary in your `target` folder. Make sure this binary corresponds to the executable you want to test by running `cargo build --features constant-fees` before.
To run the cucumber tests, you will need to have the rust toolchain installed locally. To run the cucumber tests, you will need to have the rust toolchain installed locally.
......
...@@ -36,6 +36,7 @@ Feature: Distance fail ...@@ -36,6 +36,7 @@ Feature: Distance fail
Then ferdie should have 10 ĞD reserved Then ferdie should have 10 ĞD reserved
Then ferdie should have 449 cĞD Then ferdie should have 449 cĞD
When 7 blocks later When 7 blocks later
Then treasury should contain 102 cĞD
When alice runs distance oracle When alice runs distance oracle
When 7 blocks later When 7 blocks later
Then ferdie should be certified by alice Then ferdie should be certified by alice
...@@ -45,4 +46,5 @@ Feature: Distance fail ...@@ -45,4 +46,5 @@ Feature: Distance fail
# Ferdie got his reserve slashed # Ferdie got his reserve slashed
Then ferdie should have 0 ĞD reserved Then ferdie should have 0 ĞD reserved
Then ferdie should have 449 cĞD Then ferdie should have 449 cĞD
#Then treasury should contain 11 ĞD # Slashed amount is transfered to treasury
Then treasury should contain 1102 cĞD
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment