From 2eca4ba91edc3dab2e048da70d88c120d52a88ec Mon Sep 17 00:00:00 2001 From: Adam Tucker Date: Tue, 13 Feb 2024 22:30:42 -0700 Subject: [PATCH] e2e --- tests/e2e/group/tx.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/e2e/group/tx.go b/tests/e2e/group/tx.go index d60a09463182..88306c82a0a0 100644 --- a/tests/e2e/group/tx.go +++ b/tests/e2e/group/tx.go @@ -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) } }) }