Skip to content

Commit 0b7e276

Browse files
committed
fix tests to avoid timeout error in IE11 (sauce labs testing)
1 parent 328944e commit 0b7e276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/msgpack-test-suite.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ describe("msgpack-test-suite", () => {
9292
STR16_MBS: "🌏".repeat(0x100),
9393
STR32: "b".repeat(0x10_000),
9494
STR32_MBS: "🍣".repeat(0x10_000),
95-
STR32LARGE: "c".repeat(0x100_000), // may cause "RangeError: Maximum call stack size exceeded" in simple implelementions
95+
STR32LARGE: "c".repeat(0x50_000), // may cause "RangeError: Maximum call stack size exceeded" in simple implelementions
9696
STR_INCLUDING_NUL: "foo\0bar\0",
9797
STR_BROKEN_FF: "\xff",
9898
BIN16: new Uint8Array(0x100).fill(0xff),
9999
BIN32: new Uint8Array(0x10_000).fill(0xff),
100-
BIN32LARGE: new Uint8Array(0x100_000).fill(0xff), // regression: caused "RangeError: Maximum call stack size exceeded"
100+
BIN32LARGE: new Uint8Array(0x50_000).fill(0xff), // regression: caused "RangeError: Maximum call stack size exceeded"
101101
ARRAY16: new Array<boolean>(0x100).fill(true),
102102
ARRAY32: new Array<boolean>(0x10000).fill(true),
103103
MAP16: new Array<null>(0x100).fill(null).reduce<Record<string, number>>((acc, _val, i) => {

0 commit comments

Comments
 (0)