Skip to content

Commit

Permalink
e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Feb 14, 2024
1 parent 704e56f commit 2eca4ba
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/e2e/group/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2479,7 +2479,19 @@ func (s *E2ETestSuite) TestExecProposalsWhenMemberLeavesOrIsUpdated() {
s.Require().NoError(err)

if tc.expectLogErr {
s.Require().Contains(execResp.Events, tc.errMsg)
found := false
for _, event := range execResp.Events {
for _, attr := range event.Attributes {
if attr.Value == tc.errMsg {
found = true
break
}
}
if found {
break
}
}
s.Require().True(found, "Expected to find '%s' in execResp.Events", tc.errMsg)
}
})
}
Expand Down

0 comments on commit 2eca4ba

Please sign in to comment.