Skip to content

Commit

Permalink
clean up tests a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Sep 25, 2024
1 parent 4f11fd3 commit fcfbad1
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions test/unit/cmap/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,28 +147,13 @@ describe('new Connection()', function () {
expect(error).to.have.property(beforeHandshakeSymbol, true);
});

class MockSocket extends Socket {
override write(_data: string | Buffer) {
return false;
}
override _read() {
// do nothing
}

setTimeout() {
// do nothing
}

override on(event, handler) {
return super.on(event, handler);
}

override emit(event, ...args) {
return super.emit(event, ...args);
describe('NODE-6370: regression test', function () {
class MockSocket extends Socket {
override write(_data: string | Buffer) {
return false;
}
}
}

describe.only('NODE-6370: regression test', function () {
let socket: MockSocket;
let connection: Connection;

Expand Down

0 comments on commit fcfbad1

Please sign in to comment.