Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

chore: async await refactor #562

Merged
merged 45 commits into from
Nov 26, 2019
Merged

chore: async await refactor #562

merged 45 commits into from
Nov 26, 2019

Conversation

PedroMiguelSS
Copy link
Contributor

This PR converts the tests to use async/await syntax.

Closes #526.

The tests' setup was not changed because #541 is already doing that.

This PR replaces the old #547. The difference is that this one doesn't depend on feat/interface-tests branch, which depends on a currently WIP branch - ipfs/js-ipfsd-ctl#395.

This way we can merge this refactor as soon as it gets approved.

@alanshaw
Copy link
Contributor

alanshaw commented Nov 21, 2019

Thanks @PedroMiguelSS - just a minor point for the future, these commits should be prefixed with refactor: not chore:. https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md#type has all the possible prefixes and when to use them.

I'll take a look at this now.

Copy link
Contributor

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

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

There's still a bunch of places where the async module is used. Ideally we want to convert all of these (promisifying if necessary) and remove the dependency from package.json.

Pedro Santos added 3 commits November 22, 2019 16:26
The assertion was commented out temporarly due to bootstrap.rm bug that was fixed here ipfs/js-ipfs#2626
@alanshaw alanshaw merged commit 2ede15d into master Nov 26, 2019
@alanshaw alanshaw deleted the chore/async-await-refactor branch November 26, 2019 14:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert tests to use async/await
2 participants