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

Tests: Support for new cucumber app call txn decoding test #433

Merged
merged 3 commits into from
Nov 9, 2022

Conversation

jasonpaulos
Copy link
Contributor

This PR adds support for algorand/algorand-sdk-testing#248

Note: the code exported by this library does not suffer from the same bug as algorand/js-algorand-sdk#688, but some changes were needed to get the test to pass properly.

I don't believe this PR necessitates a patch release.

.test-env Outdated Show resolved Hide resolved
@@ -377,7 +377,6 @@ func FeatureContext(s *godog.Suite) {
s.Step(`^I build a payment transaction with sender "([^"]*)", receiver "([^"]*)", amount (\d+), close remainder to "([^"]*)"$`, iBuildAPaymentTransactionWithSenderReceiverAmountCloseRemainderTo)
s.Step(`^I create a transaction with signer with the current transaction\.$`, iCreateATransactionWithSignerWithTheCurrentTransaction)
s.Step(`^I append the current transaction with signer to the method arguments array\.$`, iAppendTheCurrentTransactionWithSignerToTheMethodArgumentsArray)
s.Step(`^the decoded transaction should equal the original$`, theDecodedTransactionShouldEqualTheOriginal)
Copy link
Contributor Author

@jasonpaulos jasonpaulos Nov 8, 2022

Choose a reason for hiding this comment

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

This step was registered twice, the other time being

s.Step(`^the decoded transaction should equal the original$`, theDecodedTransactionShouldEqualTheOriginal)

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch

@jasonpaulos jasonpaulos changed the title Support for new cucumber app call txn decoding test Tests: Support for new cucumber app call txn decoding test Nov 8, 2022
@jasonpaulos jasonpaulos requested a review from algochoi November 8, 2022 22:24
Copy link
Contributor

@algochoi algochoi left a comment

Choose a reason for hiding this comment

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

Changes look good to merge after merging the upstream SDK Testing PR - looks like tests were successfully run in CI.

@@ -377,7 +377,6 @@ func FeatureContext(s *godog.Suite) {
s.Step(`^I build a payment transaction with sender "([^"]*)", receiver "([^"]*)", amount (\d+), close remainder to "([^"]*)"$`, iBuildAPaymentTransactionWithSenderReceiverAmountCloseRemainderTo)
s.Step(`^I create a transaction with signer with the current transaction\.$`, iCreateATransactionWithSignerWithTheCurrentTransaction)
s.Step(`^I append the current transaction with signer to the method arguments array\.$`, iAppendTheCurrentTransactionWithSignerToTheMethodArgumentsArray)
s.Step(`^the decoded transaction should equal the original$`, theDecodedTransactionShouldEqualTheOriginal)
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch

test/steps_test.go Outdated Show resolved Hide resolved
@jasonpaulos jasonpaulos marked this pull request as ready for review November 9, 2022 15:51
@jasonpaulos jasonpaulos merged commit e7e6ab1 into develop Nov 9, 2022
@jasonpaulos jasonpaulos deleted the txn-box-decode-test branch November 9, 2022 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants