-
Notifications
You must be signed in to change notification settings - Fork 123
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 loadtest sendV2
#1331
base: main
Are you sure you want to change the base?
Add loadtest sendV2
#1331
Conversation
4054555
to
fd3390e
Compare
Pull Request Test Coverage Report for Build 13154191047Details
💛 - Coveralls |
This commit adds a refactored version of the send test, which uses less assertions and rpc calls. This is meant to speed things up compared to the old test, plus offer some more coverage by utilizing normal assets and balances greater than 1 (case for collectibles).
fd3390e
to
84cb596
Compare
Rebased on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question/concern about repeatability of this test, other than that looks good to me.
|
||
// Let's make sure Bob is aware of all the assets that Alice may have | ||
// minted. | ||
itest.SyncUniverses(ctx, t, bob, alice, uniHost, cfg.TestTimeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we probably have to add a new parameter to this function that allows us to sync transfer proofs as well.
When I ran this test a second time after running 1 mintV2 and 1 sendV2 test, this sync never completed, because it only tried syncing issuance proofs.
|
||
// Alice is set to be the minter in mintV2, so we use Alice's universe. | ||
var ( | ||
uniHost = fmt.Sprintf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: if just uniHost := fmt.Sprintf(...)
then can fit on one line.
Based on #1285
This PR adds the last 2 commits.
Description
This PR adds a new refactored send test for our loadtest suite, `sendV2.
The new send test uses normal assets which may have balances greater than
1
(case for collectibles), which offers a bit more coverage for our code (coin selection, psbt signing, etc).Compared to the original send test, we strip away any non-mandatory assertions and RPC calls, keeping them to the minimum required to make things happen.