Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

chore: update tests to async await - #87

Merged
achingbrain merged 5 commits into
masterfrom
chore/update-tests-to-async-await
Nov 8, 2019
Merged

achingbrain merged 5 commits into
masterfrom
chore/update-tests-to-async-await

Conversation

@PedroMiguelSS

@PedroMiguelSS PedroMiguelSS commented Sep 30, 2019 •

Copy link
Copy Markdown
Contributor

This PR changes all the tests to use async/await.
It completes phase number 4 to tackle #87 as referenced here.

@PedroMiguelSS
PedroMiguelSS force-pushed the chore/update-tests-to-async-await branch 2 times, most recently from ce990bd to c147efd Compare October 2, 2019 11:15
@PedroMiguelSS
PedroMiguelSS changed the base branch from master to chore/update-ipfsd-ctl October 7, 2019 09:21
@hugomrdias

Copy link
Copy Markdown
Member

CI still red and conflicts can you fix this so we can review ?

@vasco-santos vasco-santos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I made a first pass through this

Comment thread package.json Resolved
Comment thread test/exchange-files.js Resolved
Comment thread test/files.js Resolved
Comment thread test/utils/wait-for.js Resolved
Comment thread test/ipns-pubsub.js Resolved
Comment thread test/ipns-pubsub.js Resolved
Comment thread test/ipns-pubsub.js Resolved
Comment thread test/ipns-pubsub.js Resolved
Comment thread test/utils/circuit.js Resolved
Comment thread test/pubsub.js Resolved
@PedroMiguelSS
PedroMiguelSS force-pushed the chore/update-ipfsd-ctl branch from facc384 to 4f38311 Compare October 9, 2019 13:29

@achingbrain achingbrain left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nothing major, great work - let's get this in.

Comment thread test/exchange-files.js Resolved
Comment thread test/files.js Resolved
Comment thread test/files.js Resolved
Comment thread test/files.js Resolved
Comment thread test/files.js Resolved
Comment thread test/ipns-pubsub.js Resolved
Comment thread test/ipns-pubsub.js Resolved
Comment thread test/ipns-pubsub.js Resolved
Comment thread test/utils/wait-for.js Resolved
Comment thread test/utils/p-retry.js Resolved
@PedroMiguelSS
PedroMiguelSS force-pushed the chore/update-tests-to-async-await branch from c147efd to 159246d Compare October 25, 2019 12:10
@PedroMiguelSS
PedroMiguelSS changed the base branch from chore/update-ipfsd-ctl to master October 25, 2019 12:12
@PedroMiguelSS

Copy link
Copy Markdown
Contributor Author

I've committed the requested changes. Can you review it again, please? @achingbrain @vasco-santos

@achingbrain

Copy link
Copy Markdown
Member

This is great - so nearly there. Two final, final things:

  1. Remove the package-lock.json file
  2. Create a /src/utils/chai.js file that configures the two chai plugins, export expect from that (similar to these lines) and use that export everywhere - this is so chai is only configured in one place - if plugins are added later by someone else somewhere else it'll cause the same problem

@PedroMiguelSS

Copy link
Copy Markdown
Contributor Author

Done @achingbrain!

@daviddias

Copy link
Copy Markdown
Member

@PedroMiguelSS see error's on CI: https://travis-ci.com/ipfs/interop/jobs/250668939#L329-L372 can you figure out why it is failing?

@achingbrain
achingbrain merged commit 27beca5 into master Nov 8, 2019
@achingbrain
achingbrain deleted the chore/update-tests-to-async-await branch November 8, 2019 16:01
@alanshaw

Copy link
Copy Markdown
Member

🎉👏❤️

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.

6 participants