test(agents): stabilize implicit sandbox exec status assertion on windows

This commit is contained in:
Frank Yang
2026-02-22 20:46:44 -08:00
committed by Gustavo Madeira Santana
parent de7cf963e4
commit bcd964d268

View File

@@ -644,6 +644,8 @@ describe("Agent-specific tool filtering", () => {
const result = await execTool!.execute("call-implicit-sandbox-default", {
command: "echo done",
// CI on slower Windows runners can surface an in-flight status with very low yieldMs.
yieldMs: 1000,
});
const details = result?.details as { status?: string } | undefined;
expect(details?.status).toBe("completed");