diff --git a/osmoutils/store_helper_test.go b/osmoutils/store_helper_test.go index e601663778c..c5ce97bcd38 100644 --- a/osmoutils/store_helper_test.go +++ b/osmoutils/store_helper_test.go @@ -893,7 +893,9 @@ func (s *TestSuite) TestGetIfFound() { s.Require().Equal(found, tc.expectFound) if tc.expectErr { s.Require().Error(err) - } else { + } + // make sure found by key & Unmarshal successfully + if !tc.expectErr && tc.expectFound { s.Require().Equal(expectedValue.String(), tc.actualResultProto.String()) } }