test(FN-4643): complete Step 3 — cover native streaming behavior
Fusion-Task-Id: FN-4643 Fusion-Task-Lineage: edcfb4a1-f714-47e8-a919-50b35b40e6af
This commit is contained in:
@@ -50,9 +50,10 @@ describe("BubblewrapBackend", () => {
|
||||
};
|
||||
|
||||
const nativeStub: SandboxBackend = {
|
||||
capabilities: () => ({ id: "native", supportsNetworkPolicy: false, supportsFilesystemPolicy: false, platform: "any" }),
|
||||
capabilities: () => ({ id: "native", supportsNetworkPolicy: false, supportsFilesystemPolicy: false, supportsStreaming: true, platform: "any" }),
|
||||
prepare: vi.fn(async () => undefined),
|
||||
run: vi.fn(async () => runResult),
|
||||
runStreaming: vi.fn(async () => ({ outcome: "success", stdout: "", stderr: "", bufferOverflow: false })),
|
||||
dispose: vi.fn(async () => undefined),
|
||||
};
|
||||
|
||||
|
||||
@@ -35,9 +35,10 @@ vi.mock("../../sandbox/native.js", () => ({
|
||||
NativeSandboxBackend: class {
|
||||
prepare = nativePrepareMock;
|
||||
run = nativeRunMock;
|
||||
runStreaming = vi.fn();
|
||||
dispose = nativeDisposeMock;
|
||||
capabilities() {
|
||||
return { id: "native", supportsNetworkPolicy: false, supportsFilesystemPolicy: false, platform: "any" };
|
||||
return { id: "native", supportsNetworkPolicy: false, supportsFilesystemPolicy: false, supportsStreaming: true, platform: "any" };
|
||||
}
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user