1) Connection
Connection - functional/cmap
should support calling back multiple times on exhaust commands:
Uncaught AssertionError: expected MongoServerError: BSON field 'getMore.getMore' is the wrong type 'double', expected type 'long' { ok: +0, code: 14, codeName: 'TypeMismatch' } to not exist
at /data/mci/dbab8e43eb3355d3239af9deb5b23367/src/test/integration/connection-monitoring-and-pooling/connection.test.ts:127:41
at Connection.onMessage (src/cmap/connection.ts:63:17)
at MessageStream.<anonymous> (src/cmap/connection.ts:3:417)
at MessageStream.emit (domain.js:475:12)
2) Connection
Connection - functional/cmap
should support calling back multiple times on exhaust commands:
AssertionError: expected [ AssertionError{ message: 'expected MongoServerError: BSON field \'getMore.getMore\' is the wrong type \'double\', expected type \'long\' { ok: +0, code: 14, codeName: \'TypeMismatch\' } to not exist', showDiff: false, actual: MongoServerError: BSON field 'getMore.getMore' is the wrong type 'double', expected type 'long' { ok: +0, code: 14, codeName: 'TypeMismatch' }, expected: undefined, operator: 'notStrictEqual', stack: 'AssertionError: expected MongoServerError: BSON field \'getMore.getMore\' is the wrong type \'double\', expected type \'long\' { ok: +0, code: 14, codeName: \'TypeMismatch\' } to not exist\n at /data/mci/dbab8e43eb3355d3239af9deb5b23367/src/test/integration/connection-monitoring-and-pooling/connection.test.ts:127:41\n at Connection.onMessage (src/cmap/connection.ts:63:17)\n at MessageStream.<anonymous> (src/cmap/connection.ts:3:417)\n at MessageStream.emit (domain.js:475:12)\n at processIncomingData (src/cmap/message_stream.ts:60:4)\n at MessageStream._write (src/cmap/message_stream.ts:7:93)\n at writeOrBuffer (internal/streams/writable.js:358:12)\n at MessageStream.Writable.write (internal/streams/writable.js:303:10)\n at Socket.ondata (internal/streams/readable.js:731:22)\n at Socket.emit (domain.js:475:12)\n at addChunk (internal/streams/readable.js:293:12)\n at readableAddChunk (internal/streams/readable.js:267:9)\n at Socket.Readable.push (internal/streams/readable.js:206:10)\n at TCP.onStreamRead (internal/stream_base_commons.js:188:23)', uncaught: true } ] to have a length of +0 but got 1
+ expected - actual
-1
+0