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

Refactoring and improvements around token transfer and usdc transfer tests #15502

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

mateusz-sekara
Copy link
Collaborator

Requires

Supports

@mateusz-sekara mateusz-sekara changed the title Test Refactoring and improvements around token transfer and usdc transfer tests Dec 4, 2024
}
})
}
execStates := changeset.ConfirmExecWithSeqNrsForAll(
Copy link
Contributor

Choose a reason for hiding this comment

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

are parallel checks not applicable here like you did for commit?

) {
errGrp := &errgroup.Group{}
for chainID, tokens := range expectedBalances {
for id, balance := range tokens {
Copy link
Contributor

Choose a reason for hiding this comment

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

better to create local scope for id and balance here

errGrp := &errgroup.Group{}

for sourceDest, seqRange := range expectedSeqNums {
errGrp.Go(func() error {
Copy link
Contributor

Choose a reason for hiding this comment

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

might run into overrides, better to create local scope for sourceDest and seqRange


for _, tt := range requests {
t.Run(tt.Name, func(t *testing.T) {
expectedTokenBalances = AppendExpectedTokenBalances(
Copy link
Contributor

Choose a reason for hiding this comment

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

is it possible to run these in parallel?

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.

2 participants