From 905707284dc72cf9d975657ea81894579a5a8824 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Sat, 19 Aug 2023 15:18:44 -0700 Subject: [PATCH] Up parser unti test timeout 10s -> 30s --- src/common/parser/DcsParser.test.ts | 4 ++-- src/common/parser/OscParser.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/parser/DcsParser.test.ts b/src/common/parser/DcsParser.test.ts index 096ebb58..c6cc0994 100644 --- a/src/common/parser/DcsParser.test.ts +++ b/src/common/parser/DcsParser.test.ts @@ -227,7 +227,7 @@ describe('DcsParser', () => { assert.deepEqual(reports, [['two', [1, 2, 3], 'Here comes the mouse!'], ['one', [1, 2, 3], 'Here comes the mouse!']]); }); it('should work up to payload limit', function(): void { - this.timeout(10000); + this.timeout(30000); parser.registerHandler(identifier({intermediates: '+', final: 'p'}), new DcsHandler((data, params) => { reports.push([params.toArray(), data]); return true; })); parser.hook(identifier({intermediates: '+', final: 'p'}), Params.fromArray([1, 2, 3])); const data = toUtf32('A'.repeat(1000)); @@ -238,7 +238,7 @@ describe('DcsParser', () => { assert.deepEqual(reports, [[[1, 2, 3], 'A'.repeat(PAYLOAD_LIMIT)]]); }); it('should abort for payload limit +1', function(): void { - this.timeout(10000); + this.timeout(30000); parser.registerHandler(identifier({intermediates: '+', final: 'p'}), new DcsHandler((data, params) => { reports.push([params.toArray(), data]); return true; })); parser.hook(identifier({intermediates: '+', final: 'p'}), Params.fromArray([1, 2, 3])); let data = toUtf32('A'.repeat(1000)); diff --git a/src/common/parser/OscParser.test.ts b/src/common/parser/OscParser.test.ts index 5c7f5777..b88171c8 100644 --- a/src/common/parser/OscParser.test.ts +++ b/src/common/parser/OscParser.test.ts @@ -221,7 +221,7 @@ describe('OscParser', () => { assert.deepEqual(reports, [['two', 'Here comes the mouse!'], ['one', 'Here comes the mouse!']]); }); it('should work up to payload limit', function(): void { - this.timeout(10000); + this.timeout(30000); parser.registerHandler(1234, new OscHandler(data => { reports.push([1234, data]); return true; })); parser.start(); let data = toUtf32('1234;'); @@ -234,7 +234,7 @@ describe('OscParser', () => { assert.deepEqual(reports, [[1234, 'A'.repeat(PAYLOAD_LIMIT)]]); }); it('should abort for payload limit +1', function(): void { - this.timeout(10000); + this.timeout(30000); parser.registerHandler(1234, new OscHandler(data => { reports.push([1234, data]); return true; })); parser.start(); let data = toUtf32('1234;');