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

Use new stop() method on matrix-mock-request #765

Merged
merged 3 commits into from
Oct 25, 2018
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Oct 25, 2018

To finish all pending flushes between tests. This stops the unit
tests from hanging on node 11 when run in certain combinations.

Requires matrix-org/matrix-mock-request#6
(so will need a release of matrix-mock-request before merging)

For the record, one such combination was:

npx mocha specbuild/integ/devicelist-integ-spec.js specbuild/integ/matrix-client-methods.spec.js specbuild/integ/matrix-client-room-timeline.spec.js

This would complete all the tests but hang spinning a CPU core instead of exiting. Adding --exit (so mocha called process.exit once the tests were all done) made it exit. Adding specbuild/integ/megolm-integ.spec.js would cause it to hang before completing the tests.

To finish all pending flushes between tests. This stops the unit
tests from hanging on node 11 when run in certain combinations.

Requires matrix-org/matrix-mock-request#6
(so will need a release of matrix-mock-request before merging)
@dbkr dbkr requested a review from a team October 25, 2018 13:32
@@ -105,6 +105,7 @@ TestClient.prototype.start = function() {
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

lint error here:

/home/travis/build/matrix-org/matrix-js-sdk/spec/TestClient.js
  103:1  error  Missing JSDoc @returns for function  valid-jsdoc

@dbkr dbkr merged commit 14071b0 into develop Oct 25, 2018
@t3chguy t3chguy deleted the dbkr/mock_request_stop branch May 10, 2022 14:20
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.

2 participants