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

rpc-v2/tx/tests: Add transaction broadcast tests and check propagated tx status #3193

Merged
merged 20 commits into from
Feb 28, 2024

Commits on Feb 13, 2024

  1. tx/tests: Move tests to dedicated module

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    886d3ab View commit details
    Browse the repository at this point in the history
  2. tx/tests: Add mock transaction pool to gain access to tx status

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    52c3afb View commit details
    Browse the repository at this point in the history
  3. tx/tests: Add task executor mock

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    58b3f5e View commit details
    Browse the repository at this point in the history
  4. tx/tests: Add setup file to use middlewares

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    8fc2339 View commit details
    Browse the repository at this point in the history
  5. tx/tests: Use the testing infrastructure

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    9a54386 View commit details
    Browse the repository at this point in the history
  6. tx/tests: Ensure a future tx is propagated

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    d98f713 View commit details
    Browse the repository at this point in the history
  7. tx/tests: Check stop cannot be called after broadcast finishes

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    c93a386 View commit details
    Browse the repository at this point in the history
  8. tx/tests: Fix race between InBlock and Finalized events

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    274b47a View commit details
    Browse the repository at this point in the history
  9. tx-pool: Extend basic pool with options

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    94bae37 View commit details
    Browse the repository at this point in the history
  10. tx/tests: Use options as default

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    233f789 View commit details
    Browse the repository at this point in the history
  11. tx/tests: Check that an invalid tx is resubmited in the future

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    f8177ab View commit details
    Browse the repository at this point in the history
  12. chainHead/tests: Do not panic on dropped receivers from mocks

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    7004451 View commit details
    Browse the repository at this point in the history
  13. test-utils: Inject tx priority to the test pool api

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    5c76f29 View commit details
    Browse the repository at this point in the history
  14. tx/tests: Check immediately dropped tx are resubmitted

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    2d764ef View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2024

  1. tx/tests: Decrease timeout from 60 secs to 5 secs

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    373ae27 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'origin/master' into lexnv/broadcast-tx-…

    …tests
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    6466cf0 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. tx/tests: Check number of active spawned tasks

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    72dd3ae View commit details
    Browse the repository at this point in the history
  2. Update substrate/client/rpc-spec-v2/src/transaction/tests/transaction…

    …_broadcast_tests.rs
    
    Co-authored-by: James Wilson <[email protected]>
    lexnv and jsdw committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    661458a View commit details
    Browse the repository at this point in the history
  3. Update substrate/test-utils/runtime/transaction-pool/src/lib.rs

    Co-authored-by: James Wilson <[email protected]>
    lexnv and jsdw committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    c06012a View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. Configuration menu
    Copy the full SHA
    34933c3 View commit details
    Browse the repository at this point in the history