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

En 8398 tests transactions #2600

Merged
merged 13 commits into from Dec 18, 2020
Merged

Conversation

miiu96
Copy link
Contributor

@miiu96 miiu96 commented Dec 17, 2020

Added a lot of integration tests that verify if the transaction processor works as exepected.

@sasurobert sasurobert self-requested a review December 17, 2020 12:28
"math"
"math/big"
"strconv"
"testing"

"github.com/ElrondNetwork/elrond-go/process/block/preprocess"
Copy link
Contributor

Choose a reason for hiding this comment

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

goimports

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@@ -57,9 +58,10 @@ func (txProc *txProcessor) ProcessUserTx(

func (txProc *txProcessor) TakeMoveBalanceCostOutOfUser(
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename also this method to ProcessMoveBalanceCostRelayedUserTx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

vm.TestAccount(t, testContext.Accounts, owner, 2, expectedBalance)

// check accumulated fees
accumulatedFee := testContext.TxFeeHandler.GetAccumulatedFees()
Copy link
Contributor

Choose a reason for hiding this comment

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

You can search everywhere after this message: // check accumulated fees , and replace the below variable name from
accumulatedFee to accumulatedFees

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

# Conflicts:
#	integrationTests/vm/testInitializer.go
#	process/transaction/shardProcess_test.go
sasurobert
sasurobert previously approved these changes Dec 18, 2020
@@ -134,12 +134,12 @@ func TestMoveBalanceHigherNonceShouldNotConsumeGas(t *testing.T) {
vm.TestAccount(t, testContext.Accounts, sndAddr, 0, expectedBalance)

// check accumulated fees
accumulatedFee := testContext.TxFeeHandler.GetAccumulatedFees()
require.Equal(t, big.NewInt(0), accumulatedFee)
accumulatedFeess := testContext.TxFeeHandler.GetAccumulatedFees()
Copy link
Contributor

Choose a reason for hiding this comment

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

*feess

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

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

👍

@LucianMincu LucianMincu merged commit c408bd7 into development Dec 18, 2020
@miiu96 miiu96 deleted the EN-8398-tests-transactions branch December 29, 2020 07:20
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.

None yet

4 participants