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: start daemons in series #95

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Conversation

achingbrain
Copy link
Member

We store references to the daemon client in the return value of Promise.all and use them to stop the daemons after a test run - if one or more daemons fail to start, we lose all references to daemons that started successfully so cannot stop them and the test run hangs.

Instead start them individually so we can tear down any that started successfully.

Refs: libp2p/js-libp2p#1575

We store references to the daemon client in the return value of
`Promise.all` and use them to stop the daemons after a test run -
if one or more daemons fail to start, we lose all references to
daemons that started successfully so cannot stop them and the test
run hangs.

Instead start them individually so we can tear down any that started
successfully.
@achingbrain achingbrain merged commit 949b000 into master Feb 28, 2023
@achingbrain achingbrain deleted the fix/start-daemons-separately branch February 28, 2023 11:07
github-actions bot pushed a commit that referenced this pull request Feb 28, 2023
## [7.0.2](v7.0.1...v7.0.2) (2023-02-28)

### Bug Fixes

* start daemons in series ([#95](#95)) ([949b000](949b000))
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.

1 participant