mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
test(windows): use the native cold budget for OpenSSH admission
The real PowerShell admission fixture can hit its private ten-second process limit before completing its descriptor table. Reuse the existing Windows PowerShell cold-spawn allowance, as other native fixtures do, while preserving all installation, ACL, identity, and output assertions. Production inspection budgets are unchanged. Matching Windows controls retained the original timeout failures; native receiving proof is required before landing this fixture correction.
This commit is contained in:
parent
b36eb3e7b1
commit
5eeecd39f9
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import os from "node:os";
|
|||
import path from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { parse } from "yaml";
|
||||
import { WINDOWS_POWERSHELL_COLD_SPAWN_TIMEOUT_MS } from "../../src/infra/windows-powershell-spawn.js";
|
||||
import { createScriptTestHarness } from "./test-helpers.js";
|
||||
|
||||
const { createTempDir } = createScriptTestHarness();
|
||||
|
|
@ -320,7 +321,7 @@ foreach ($case in $cases) {
|
|||
fixture,
|
||||
path.resolve("scripts/windows-testbox-openssh.ps1"),
|
||||
],
|
||||
{ encoding: "utf8", timeout: 10000 },
|
||||
{ encoding: "utf8", timeout: WINDOWS_POWERSHELL_COLD_SPAWN_TIMEOUT_MS },
|
||||
);
|
||||
const redact = (text: string | null | undefined) => {
|
||||
let value = text ?? "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue