Skip to content

Commit

Permalink
Update steps_downtime.go
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Sep 13, 2023
1 parent 6ee88e2 commit 28401ac
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions tests/e2e/steps_downtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,33 @@ func stepsThrottledDowntime(consumerName string) []Step {
chainID("provi"): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 511,
validatorID("bob"): 0, // bob is jailed
validatorID("bob"): 0, // bob is jailed on provider
validatorID("carol"): 500,
},
},
chainID(consumerName): ChainState{
// VSC packet applying jailing is not yet relayed to consumer
ValPowers: &map[validatorID]uint{
validatorID("alice"): 511,
validatorID("bob"): 500,
// VSC packet applying jailing may or may not be relayed to consumer
// depending on hermes vs gorelayer behavior. Therefore skip asserting bob's consumer power
validatorID("carol"): 500,
},
},
},
},
{
// After relaying one more time, vsc packet applying jailing should be seen on consumer
action: relayPacketsAction{
chainA: chainID("provi"),
chainB: chainID(consumerName),
port: "provider",
channel: 0,
},
state: State{
chainID(consumerName): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 511,
validatorID("bob"): 0,
validatorID("carol"): 500,
},
},
Expand All @@ -340,7 +358,7 @@ func stepsThrottledDowntime(consumerName string) []Step {
chainID(consumerName): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 511,
validatorID("bob"): 500, // VSC packet applying bob jailing is not yet relayed to consumer
validatorID("bob"): 0,
validatorID("carol"): 500,
},
},
Expand All @@ -364,7 +382,7 @@ func stepsThrottledDowntime(consumerName string) []Step {
chainID(consumerName): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 511,
validatorID("bob"): 0, // VSC packet applying bob jailing is also relayed and recv by consumer
validatorID("bob"): 0,
validatorID("carol"): 500,
},
},
Expand Down

0 comments on commit 28401ac

Please sign in to comment.