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

Commit

Permalink
Tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
grbIzl committed Aug 24, 2021
1 parent de58741 commit 9b499f2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
12 changes: 6 additions & 6 deletions node/malus/integrationtests/0001-dispute-valid-block.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ Feature: Disputes
Scenario: Dispute Valid Block
Given a test network
Then alice is up
And alice reports substrate_node_roles is 4
And alice reports substrate_sub_libp2p_is_major_syncing is 0
When alice's best block should be above 1
Then alice reports block height is greater than 1
And alice reports node_roles is 4
And alice reports sub_libp2p_is_major_syncing is 0
Then sleep 60 seconds
Then alice reports block height is greater than 10
And alice reports peers count is at least 2
Then bob is up
And bob reports block height is greater than 30
And bob reports block height is greater than 10
And bob reports peers count is at least 2
Then charlie is up
And charlie reports block height is greater than 30
And charlie reports block height is greater than 10
And charlie reports peers count is at least 2
Then david is up
And alice reports parachain_candidate_open_disputes is 1
Expand Down
2 changes: 1 addition & 1 deletion node/malus/integrationtests/0001-dispute-valid-block.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extra-args = ["--charlie"]
image = "parity/polkadot"
command = "polkadot"

[nodes.mal]
[nodes.david]
validator = true
extra-args = ["--dave"]
image = "paritypr/malus:v1"
Expand Down
15 changes: 8 additions & 7 deletions node/malus/integrationtests/0002-dispute-invalid-block.feature
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
Feature: Disputes

Scenario: Dispute Valid Block
Scenario: Dispute Invalid Block
Given a test network
Then alice is up
And alice reports substrate_node_roles is 4
And alice reports substrate_sub_libp2p_is_major_syncing is 0
When alice's best block should be above 1
Then alice reports block height is greater than 1
And alice reports node_roles is 4
And alice reports sub_libp2p_is_major_syncing is 0
Then sleep 60 seconds
Then alice reports block height is greater than 10
And alice reports peers count is at least 2
Then bob is up
And bob reports block height is greater than 30
And bob reports block height is greater than 10
And bob reports peers count is at least 2
Then charlie is up
And charlie reports block height is greater than 30
And charlie reports block height is greater than 10
And charlie reports peers count is at least 2
Then david is up
Then eve is up
And alice reports parachain_candidate_open_disputes is 1
And bob reports parachain_candidate_open_disputes is 1
And charlie reports parachain_candidate_open_disputes is 1
Expand Down

0 comments on commit 9b499f2

Please sign in to comment.