Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Fixing up acceptance test #324

Merged
merged 8 commits into from
Nov 28, 2018
Merged

Fixing up acceptance test #324

merged 8 commits into from
Nov 28, 2018

Conversation

CjHare
Copy link
Contributor

@CjHare CjHare commented Nov 28, 2018

Yesterday I discovered that Web3j is calling EthGetTransactionReceipt as part of it's contract deployment code.
Meaning the acceptance test that validates the correctness of the EthGetTransactionReceipt was not as good or 'correct' test as it should be.

The focus of this PR was to change the AT to centre on the state of the transaction receipt and remove the valueless duplicate call (by removing the one in the AT).

@@ -47,6 +49,7 @@ protected AcceptanceTestBase() {
transactions = new Transactions(accounts);
web3 = new Web3(new Web3Transactions());
pantheon = new PantheonNodeFactory();
contract = new ContractVerifier(accounts.getPrimaryBenefactor());
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: naming this variable as contract can be misleading. Shouldn't we name it contractVerifier?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha, you know that was it's name originally, I'll change it back

*/
package tech.pegasys.pantheon.tests.acceptance.dsl.condition.eth;

public class ExpectContractTransactionReciept {}
Copy link
Contributor

Choose a reason for hiding this comment

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

TYPO: ExpectContractTransactionRecIEpt -> ExpectContractTransactionRecEIpt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well spotted!

Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM.

@CjHare CjHare merged commit 86d2590 into PegaSysEng:master Nov 28, 2018
@CjHare CjHare deleted the fixing-up-acceptance-test branch November 28, 2018 22:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
acceptance test enhancement New feature or request
Projects
None yet
3 participants