From fcfbad1d2e33d35751206a5847c56d85900322af Mon Sep 17 00:00:00 2001 From: Bailey Pearson Date: Wed, 25 Sep 2024 14:39:02 -0600 Subject: [PATCH] clean up tests a bit --- test/unit/cmap/connection.test.ts | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/test/unit/cmap/connection.test.ts b/test/unit/cmap/connection.test.ts index 6711f2d789a..05e66f3dcfc 100644 --- a/test/unit/cmap/connection.test.ts +++ b/test/unit/cmap/connection.test.ts @@ -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;