mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:44:33 +00:00
test(perf): reduce heavy fixture and guardrail overhead
This commit is contained in:
@@ -9,8 +9,8 @@ import {
|
||||
} from "./extension-relay.js";
|
||||
import { getFreePort } from "./test-port.js";
|
||||
|
||||
const RELAY_MESSAGE_TIMEOUT_MS = 2_000;
|
||||
const RELAY_LIST_MATCH_TIMEOUT_MS = 1_500;
|
||||
const RELAY_MESSAGE_TIMEOUT_MS = 1_200;
|
||||
const RELAY_LIST_MATCH_TIMEOUT_MS = 1_000;
|
||||
const RELAY_TEST_TIMEOUT_MS = 10_000;
|
||||
|
||||
function waitForOpen(ws: WebSocket) {
|
||||
@@ -124,7 +124,7 @@ async function waitForListMatch<T>(
|
||||
fetchList: () => Promise<T>,
|
||||
predicate: (value: T) => boolean,
|
||||
timeoutMs = RELAY_LIST_MATCH_TIMEOUT_MS,
|
||||
intervalMs = 50,
|
||||
intervalMs = 20,
|
||||
): Promise<T> {
|
||||
let latest: T | undefined;
|
||||
await expect
|
||||
|
||||
Reference in New Issue
Block a user