Skip to content

Commit

Permalink
cucumber: Add mempool test for unconfirmed tx to mined tx (#3222)
Browse files Browse the repository at this point in the history
## Description
Add mempool test for unconfirmed tx to mined tx

## Motivation and Context
cucumber tests

## How Has This Been Tested?
npm test -- --name "Mempool unconfirmed transaction to mined transaction"

## Checklist:
* [x] I'm merging against the `development` branch.
* [x] I have squashed my commits into a single commit.
  • Loading branch information
StriderDM authored Aug 20, 2021
1 parent 980c526 commit 9af90e7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion integration_tests/features/Mempool.feature
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,16 @@ Feature: Mempool
When I submit transaction TX3 to BN1
When I submit transaction TX4 to BN1
When I submit transaction TX5 to BN1
Then I wait until base node BN1 has 5 unconfirmed transactions in its mempool
Then I wait until base node BN1 has 5 unconfirmed transactions in its mempool

@critical
Scenario: Mempool unconfirmed transaction to mined transaction
Given I have 1 seed nodes
And I have a base node BN1 connected to all seed nodes
When I mine a block on BN1 with coinbase CB1
When I mine 2 blocks on BN1
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 80
When I submit transaction TX1 to BN1
Then I wait until base node BN1 has 1 unconfirmed transactions in its mempool
When I mine 1 blocks on BN1
Then I wait until base node BN1 has 0 unconfirmed transactions in its mempool

0 comments on commit 9af90e7

Please sign in to comment.