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

fix offchain connection and tests #642

Merged
merged 1 commit into from
May 10, 2022
Merged

fix offchain connection and tests #642

merged 1 commit into from
May 10, 2022

Conversation

Westlad
Copy link
Contributor

@Westlad Westlad commented May 7, 2022

The offchain transfer tests in erc20.test.mjs were evergreen; client was unable to connect to optimist's /proposer/offchain-transaction endpoint because no optimist API URL was provided by the test harness to client. This caused a connection error when client tried to connect. However the error was thrown and caught inside an async .forEach loop inside transfer.mjs and so did not propagate back to the test harness - a double whammy.

This PR fixes both problems by providing a correct URL for optimist (NB: this has to be the URL as seen from inside the client container), and by propagating any error correctly by turning the .forEach into a .map then awaiting completion of the calls to optimist.

@Westlad Westlad merged commit f8520ae into master May 10, 2022
@Westlad Westlad deleted the westlad/test-fix branch May 10, 2022 10:05
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