diff --git a/tests/e2e/actions.go b/tests/e2e/actions.go index da25fc4bef..c8661207f4 100644 --- a/tests/e2e/actions.go +++ b/tests/e2e/actions.go @@ -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 } @@ -2914,7 +2915,7 @@ func (tr Chain) detectConsumerEvidence( } // get the evidence data from the block - // note that the the evidence is added to the next block after the infraction height + // note that the evidence is added to the next block after the infraction height cmd := tr.target.ExecCommand( consumerBinaryName, "query", "block", "--type=height", strconv.Itoa(int(infractionHeight+1)),