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

rearrange concurrency in Test_Concurrent_Submission #69

Merged
merged 4 commits into from
Jun 25, 2024

Conversation

brianolson
Copy link
Contributor

use different client for submission and N different clients for txn status waiting close channels when they're done
simplify channel consuming syntax
WaitGroup-s for intra-function goroutines

Description

cleaner/stricter goroutine/chan usage

Test Plan

This is a test

Related Links

use different client for submission and N different clients for txn status waiting
close channels when they're done
simplify channel consuming syntax
WaitGroup-s for intra-function goroutines
BuildTransactions, BuildSignAndSubmitTransactions, BuildSignAndSubmitTransactionsWithSignFunction get options
Test_Concurrent_Submission ExpirationSeconds(20)
Copy link
Contributor

@gregnazario gregnazario left a comment

Choose a reason for hiding this comment

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

Think in general it looks way better than my initial attempt

Comment on lines -382 to +418
client, err := NewClient(DevnetConfig)
client, err := NewClient(netConfig)
Copy link
Contributor

Choose a reason for hiding this comment

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

You should be able to use NewTestClient, which handles which network in one place (for this it's all localnet)

@brianolson brianolson marked this pull request as ready for review June 25, 2024 20:41
@brianolson brianolson requested a review from a team as a code owner June 25, 2024 20:41
@brianolson brianolson merged commit 940b3a6 into aptos-labs:main Jun 25, 2024
1 check passed
@brianolson brianolson deleted the test_concurrent_tweaks branch June 25, 2024 21:06
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