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

Add a test case with multiple transactions and upstream node #615

Merged

Conversation

fgimenez
Copy link
Contributor

@fgimenez fgimenez commented Feb 5, 2018

Add a test case with multiple transactions and upstream node.

As suggested by #613 the test is based on TestCompleteMultipleQueuedTransactions for concurrent transactions and TestCallRPCSendTransactionUpstream for upstream node initialization. I've increased the number of transactions in order to try to reproduce the problem described in #538, but the test passes consistently, is this correct? does the test need some further tweaking?

Closes #613

@@ -811,3 +811,103 @@ func (s *TransactionsTestSuite) TestEvictionOfQueuedTransactions() {
m.Unlock()
s.Zero(txQueue.Count(), "transaction count should be zero: %d", txQueue.Count())
}

func (s *TransactionsTestSuite) TestCompleteMultipleQueuedTransactionsUpstream() {
Copy link
Contributor

Choose a reason for hiding this comment

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

looks good, but please make it DRY :)

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, added setupUpstreamNode, setupLocalNode and sendConcurrentTransactions, PTAL.

Copy link
Contributor

@mandrigin mandrigin left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the contribution! 🏅
Looks good except what @dshulyak said :)

@mandrigin mandrigin merged commit 2f4be93 into status-im:develop Feb 5, 2018
@mandrigin
Copy link
Contributor

@fgimenez thanks a lot for making our test suite better! ⭐️

@fgimenez fgimenez deleted the e2e-concurrent-transaction-upstream branch February 5, 2018 15:49
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.

3 participants