Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions test/integration/change-streams/change_stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -826,38 +826,6 @@ describe('Change Streams', function () {
}
});

it('when invoked with callbacks', {
metadata: { requires: { topology: 'replicaset' } },
test: function (done) {
const ops = [];
changeStream.next(() => {
changeStream.next(() => {
ops.push(lastWrite());

// explicitly close the change stream after the write has begun
ops.push(changeStream.close());

changeStream.next(err => {
try {
expect(err)
.property('message')
.to.match(/ChangeStream is closed/);
Promise.all(ops).then(() => done(), done);
} catch (e) {
done(e);
}
});
});
});

ops.push(
write().catch(() => {
// ignore
})
);
}
});

it.skip('when invoked using eventEmitter API', {
metadata: {
requires: { topology: 'replicaset' }
Expand Down