Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(mcp-host): give the linear-time checks room on a loaded machine

marcotebda6418801cb1
diff --git a/mcp-host/src/workflow/__tests__/inlineMarkup.test.ts b/mcp-host/src/workflow/__tests__/inlineMarkup.test.ts
index a8428322d..23d1a8c00 100644
--- a/mcp-host/src/workflow/__tests__/inlineMarkup.test.ts
+++ b/mcp-host/src/workflow/__tests__/inlineMarkup.test.ts
@@ -379,7 +379,8 @@ describe('image targets', () => {
for (const inside of [`a${spaces}b`, `a${spaces}"title"`, `a${spaces}(b`, `${spaces}x`]) {
const started = performance.now()
imageTarget(inside)
- expect(performance.now() - started).toBeLessThan(200)
+ // Quadratic work on these takes minutes; the bound leaves room for a loaded machine.
+ expect(performance.now() - started).toBeLessThan(2000)
}
})
})
diff --git a/mcp-host/src/workflow/__tests__/markdownBlocks.test.ts b/mcp-host/src/workflow/__tests__/markdownBlocks.test.ts
index db267764b..b5ddd83d2 100644
--- a/mcp-host/src/workflow/__tests__/markdownBlocks.test.ts
+++ b/mcp-host/src/workflow/__tests__/markdownBlocks.test.ts
@@ -51,7 +51,8 @@ describe('delimiter rows', () => {
]) {
const started = performance.now()
isTableSeparator(line)
- expect(performance.now() - started).toBeLessThan(200)
+ // Quadratic work on these takes minutes; the bound leaves room for a loaded machine.
+ expect(performance.now() - started).toBeLessThan(2000)
}
})
})