From 85814ed03f9eec767be02ae4d2bcf609b38e840c Mon Sep 17 00:00:00 2001 From: Nicolas Dextraze Date: Wed, 29 Mar 2017 13:29:17 -0700 Subject: [PATCH] Fix binary string issue in Large event tests --- test/appendToStream_test.js | 2 +- test/readEvent_test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/appendToStream_test.js b/test/appendToStream_test.js index d76a9a3..2c3d864 100644 --- a/test/appendToStream_test.js +++ b/test/appendToStream_test.js @@ -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) diff --git a/test/readEvent_test.js b/test/readEvent_test.js index 0a5115d..365f1b5 100644 --- a/test/readEvent_test.js +++ b/test/readEvent_test.js @@ -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()