Fix binary string issue in Large event tests

This commit is contained in:
Nicolas Dextraze 2017-03-29 13:29:17 -07:00
parent 361330629d
commit 85814ed03f
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ module.exports = {
},
'Append Large event': function(test) {
test.expect(2);
const largeData = Buffer.alloc(3 * 1024 *1024, 1);
const largeData = Buffer.alloc(3 * 1024 *1024, " ");
const event = client.createJsonEventData(uuid.v4(), {a: largeData.toString()}, null, 'largePayloadEvent');
this.conn.appendToStream(this.testStreamName, client.expectedVersion.any, event)

View File

@ -112,7 +112,7 @@ module.exports = {
'Read a Large Event': function(test) {
test.expect(8);
var self = this;
const largeData = Buffer.alloc(3 * 1024 * 1024, 1);
const largeData = Buffer.alloc(3 * 1024 * 1024, " ");
const largeEvent = client.createJsonEventData(uuid.v4(), {
a: largeData.toString()