This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as ab from 'asyncblock'; | |
import * as fs from 'fs'; | |
import { by } from 'protractor'; | |
import * as profiler from 'v8-profiler'; | |
import { browserSync, elementSync } from '../../app/vars'; | |
new Array(5000).join().split(',').forEach((num, i) => { | |
describe('1', () => { | |
beforeAll(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Write the data out to the socket | |
Connection.prototype.write = function(command, callback) { | |
try { | |
// If we have a list off commands to be executed on the same socket | |
if(Array.isArray(command)) { | |
for(var i = 0; i < command.length; i++) { | |
var binaryCommand = command[i].toBinary() | |
if(!this.socketOptions['disableDriverBSONSizeCheck'] && binaryCommand.length > this.maxBsonSize) | |
return callback(new Error("Document exceeds maximal allowed bson size of " + this.maxBsonSize + " bytes")); | |
if(this.logger != null && this.logger.doDebug) |