MCPcopy
hub / github.com/mongodb/node-mongodb-native / read

Function read

test/integration/change-streams/change_stream.test.ts:882–895  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

880 metadata: { requires: { topology: '!single' } },
881 test: async function () {
882 const read = async () => {
883 await changeStream.next();
884 await changeStream.next();
885
886 const write = lastWrite();
887
888 const nextP = changeStream.next();
889 nextP.catch(() => null);
890
891 await changeStream.close();
892
893 await write;
894 await nextP;
895 };
896
897 const error = await Promise.all([read(), write()]).then(
898 () => null,

Callers 1

Calls 3

lastWriteFunction · 0.85
nextMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected