Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Sep 11, 2024
1 parent 386bd56 commit 315d06b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2900,7 +2900,8 @@ func (tr Chain) detectConsumerEvidence(
bz, err := cmd.CombinedOutput()
if err == nil {
evidence := gjson.Get(string(bz), "evidence")
if len(evidence.Array()) > 0 {
// we only expect only one evidence
if len(evidence.Array()) == 1 {
infractionHeight = evidence.Array()[0].Get("value.height").Int()
break
}
Expand Down

0 comments on commit 315d06b

Please sign in to comment.