Skip to content

Commit

Permalink
tests: revert reducing happyPath steps count
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Aug 9, 2023
1 parent 5ec3365 commit 553ed3c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 4 additions & 1 deletion tests/e2e/steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ var happyPathSteps = concatSteps(
stepsRedelegateForOptOut("consu"),
stepsDowntimeWithOptOut("consu"),
stepsRedelegate("consu"),
stepsDowntime("consu"),
stepsRejectEquivocationProposal("consu", 2), // prop to tombstone bob is rejected
stepsDoubleSignOnProviderAndConsumer("consu"), // carol double signs on provider, bob double signs on consumer
stepsSubmitEquivocationProposal("consu", 2), // now prop to tombstone bob is submitted and accepted
stepsStopChain("consu", 3), // stop chain
stepsStartRelayer(),
stepsConsumerRemovalPropNotPassing("consu", 3), // submit removal prop but vote no on it - chain should stay
stepsStopChain("consu", 4),
)

var shortHappyPathSteps = concatSteps(
Expand Down
5 changes: 2 additions & 3 deletions tests/e2e/steps_double_sign.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

// Steps that make carol double sign on the provider, and bob double sign on a single consumer.
// These steps happen after opt-out downtime traces have executed.
// Steps that make carol double sign on the provider, and bob double sign on a single consumer
func stepsDoubleSignOnProviderAndConsumer(consumerName string) []Step {
return []Step{
{
Expand All @@ -23,7 +22,7 @@ func stepsDoubleSignOnProviderAndConsumer(consumerName string) []Step {
ValPowers: &map[validatorID]uint{
validatorID("alice"): 509,
validatorID("bob"): 500,
validatorID("carol"): 501, // not tombstoned on consumerName yet
validatorID("carol"): 495, // not tombstoned on consumerName yet
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/steps_submit_equivocation_proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func stepsRejectEquivocationProposal(consumerName string, propNumber uint) []Ste
ValPowers: &map[validatorID]uint{
validatorID("alice"): 509,
validatorID("bob"): 500,
validatorID("carol"): 501,
validatorID("carol"): 495,
},
ValBalances: &map[validatorID]uint{
validatorID("bob"): 9500000000,
Expand All @@ -35,7 +35,7 @@ func stepsRejectEquivocationProposal(consumerName string, propNumber uint) []Ste
ValPowers: &map[validatorID]uint{
validatorID("alice"): 509,
validatorID("bob"): 500,
validatorID("carol"): 501,
validatorID("carol"): 495,
},
},
},
Expand Down

0 comments on commit 553ed3c

Please sign in to comment.