mirror of
https://github.com/morluto/rea.git
synced 2026-10-12 02:19:24 +00:00
fix(ci): avoid load-sensitive escape regression timing
This commit is contained in:
@@ -597,11 +597,9 @@ describe("property mutation collection on minified bundles", () => {
|
||||
{ length: 2000 },
|
||||
(_, index) => `source.p${index} = ${index};`,
|
||||
).join(" ");
|
||||
const start = performance.now();
|
||||
const value = resultValue(
|
||||
`const source = { token: "TOKEN" }; ${writes} return [source.token, source.p1999];`,
|
||||
);
|
||||
expect(performance.now() - start).toBeLessThan(2000);
|
||||
expect(value).toMatchObject({
|
||||
status: "array",
|
||||
items: [
|
||||
@@ -628,7 +626,7 @@ describe("results of methods on an escaped receiver", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("expands a receiver's methods once rather than once per call (#1495)", () => {
|
||||
it("preserves escape coverage across many receiver methods and calls (#1495)", () => {
|
||||
const count = 2000;
|
||||
const methods = Array.from(
|
||||
{ length: count },
|
||||
|
||||
Reference in New Issue
Block a user