MCPcopy Create free account
hub / github.com/cloudflare/computer / runCommand

Function runCommand

packages/computer/src/retry.test.ts:90–95  ·  view source on GitHub ↗
(ws: Workspace)

Source from the content-addressed store, hash-verified

88}
89
90async function runCommand(ws: Workspace): Promise<WorkspaceRetryPendingSyncResult | undefined> {
91 const handle = await ws.runtime.exec("build", { encoding: "utf8" });
92 const result = await handle.result();
93 expect(result.sync.status).toBe("pending");
94 return undefined;
95}
96
97describe("Workspace durable pending-sync retries", () => {
98 it("schedules the exact durable retry intent after a post-command pull failure", async () => {

Callers 1

retry.test.tsFile · 0.85

Calls 2

execMethod · 0.65
resultMethod · 0.65

Tested by

no test coverage detected