Skip to content

Conversation

@dshulyak
Copy link
Contributor

@dshulyak dshulyak commented May 7, 2021

related to: #715

lumtis
lumtis previously approved these changes May 7, 2021
Copy link
Contributor

@lumtis lumtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working well for me 👍

fadeev
fadeev previously approved these changes May 7, 2021
Copy link
Contributor

@fadeev fadeev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

Copy link
Member

@ilgooz ilgooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! 🍻

_, err := srv.Create<%= title(TypeName) %>(ctx, &types.MsgCreate<%= title(TypeName) %>{Creator: creator, Index: index})
require.NoError(t, err)

_, err = srv.Update<%= title(TypeName) %>(ctx, tc.request)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also Get and check if it's really updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately there is nothing to check. Creator can't be updated, and Index is a unique identifier

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. I think, checking with a Get still might be relavent to see that nothing has changed. Also, once users start extending the underlying MsgUpdate type, they'll need to add this right. What do you think?


_, err := srv.Create<%= title(TypeName) %>(ctx, &types.MsgCreate<%= title(TypeName) %>{Creator: creator, Index: index})
require.NoError(t, err)
_, err = srv.Delete<%= title(TypeName) %>(ctx, tc.request)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also Get and check if it's really deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was pretty sure that i had the line with Get, lost it somehow :) thanks for catching this

@dshulyak dshulyak dismissed stale reviews from fadeev and lumtis via 3ee8ea3 May 10, 2021 04:59
@dshulyak dshulyak requested a review from ilgooz May 10, 2021 04:59
@dshulyak dshulyak force-pushed the feat/indexed-unit-tests branch from 3ee8ea3 to 0d14550 Compare May 10, 2021 06:01
Copy link
Member

@ilgooz ilgooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! 🦖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants