mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:28:26 +00:00
perf(test): optimize heavy suites and stabilize lock timing
This commit is contained in:
@@ -150,6 +150,11 @@ export async function getTailnetHostname(exec: typeof runExec = runExec, detecte
|
||||
let cachedTailscaleBinary: string | null = null;
|
||||
|
||||
export async function getTailscaleBinary(): Promise<string> {
|
||||
const forcedBinary = process.env.OPENCLAW_TEST_TAILSCALE_BINARY?.trim();
|
||||
if (forcedBinary) {
|
||||
cachedTailscaleBinary = forcedBinary;
|
||||
return forcedBinary;
|
||||
}
|
||||
if (cachedTailscaleBinary) {
|
||||
return cachedTailscaleBinary;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user