Skip to content

Conversation

addaleax
Copy link
Collaborator

@addaleax addaleax commented Dec 5, 2022

No description provided.

} catch { /* ignore */ }
} else {
// .end() has not been called; write an empty chunk and wait for it to be fully written.
await new Promise(resolve => this.output.write('', resolve));
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we write this empty chunk? To verify it is still writable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As the comment says, the goal here is to wait for the chunk to be fully written; because when the new chunk has been written, that implies that all previously pending data has also been written to the underlying stream.

@addaleax addaleax merged commit 2c78c4d into main Dec 5, 2022
@addaleax addaleax deleted the 1300-dev branch December 5, 2022 17:02
kmruiz added a commit that referenced this pull request Aug 3, 2023
…ONGOSH-1369 (#1537)

* feat: Add new factory for ObjectId and Binary

New methods:
ObjectId.createFromHexString
Binary.createFromBase64

* feat: Change how Binary is printed in the REPL - #1369

* fix(style): Remove unnecessary casting to 'any' as the NodeJS driver already exposes the method

* fix: remove .only so all tests run

* fix(test): Fix e2e tests

* fix(test): Remove .only from tests so it runs everything

* fix(test): Fix e2e tests

* fix(tests): Fix E2E FLE test

* fix(tests): Fix E2E FLE test on bypassQueryAnalysis

* chore: Remove unnecessary command in package.json

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

* chore: Fix e2e test for MongoDB 7.0

* chore: Fix e2e tests configuration MONGOSH-1369

---------

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
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