Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tests for GetIfFound #3145

Merged
merged 2 commits into from
Oct 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor
hieuvubk committed Oct 25, 2022
commit 0ab283e9e434e8b1be0585f28fe21f358e17247b
4 changes: 3 additions & 1 deletion osmoutils/store_helper_test.go
Original file line number Diff line number Diff line change
@@ -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())
}
}