Fix binary string issue in Large event tests
This commit is contained in:
parent
361330629d
commit
85814ed03f
|
@ -57,7 +57,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
'Append Large event': function(test) {
|
'Append Large event': function(test) {
|
||||||
test.expect(2);
|
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');
|
const event = client.createJsonEventData(uuid.v4(), {a: largeData.toString()}, null, 'largePayloadEvent');
|
||||||
|
|
||||||
this.conn.appendToStream(this.testStreamName, client.expectedVersion.any, event)
|
this.conn.appendToStream(this.testStreamName, client.expectedVersion.any, event)
|
||||||
|
|
|
@ -112,7 +112,7 @@ module.exports = {
|
||||||
'Read a Large Event': function(test) {
|
'Read a Large Event': function(test) {
|
||||||
test.expect(8);
|
test.expect(8);
|
||||||
var self = this;
|
var self = this;
|
||||||
const largeData = Buffer.alloc(3 * 1024 * 1024, 1);
|
const largeData = Buffer.alloc(3 * 1024 * 1024, " ");
|
||||||
|
|
||||||
const largeEvent = client.createJsonEventData(uuid.v4(), {
|
const largeEvent = client.createJsonEventData(uuid.v4(), {
|
||||||
a: largeData.toString()
|
a: largeData.toString()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user