Skip to content

Commit 06c9135

Browse files
committed
test(runtime): isolate Podman state mutation guards
Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
1 parent 90789eb commit 06c9135

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/lib/onboard/runtime-provider/podman.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ describe("dormant Podman runtime provider", () => {
423423
});
424424

425425
it("rejects a state-mutation engine with another operation scope", () => {
426-
const engines = realOperationEngines();
426+
const { hostLocalInference: _hostLocalInference, ...engines } = realOperationEngines();
427427

428428
expect(() =>
429429
createPodmanRuntimeProviderBundle({
@@ -436,7 +436,7 @@ describe("dormant Podman runtime provider", () => {
436436
});
437437

438438
it("rejects a state-mutation engine bound to another endpoint authority", () => {
439-
const engines = realOperationEngines();
439+
const { hostLocalInference: _hostLocalInference, ...engines } = realOperationEngines();
440440
const driftedStateMutation = realOperationEngines({
441441
...REAL_SOCKET_AUTHORITY,
442442
inode: "9002",
@@ -450,7 +450,11 @@ describe("dormant Podman runtime provider", () => {
450450
});
451451

452452
it("rejects state-mutation options without a state-mutation engine", () => {
453-
const { stateMutation: _stateMutation, ...engines } = realOperationEngines();
453+
const {
454+
hostLocalInference: _hostLocalInference,
455+
stateMutation: _stateMutation,
456+
...engines
457+
} = realOperationEngines();
454458

455459
expect(() =>
456460
createPodmanRuntimeProviderBundle({

0 commit comments

Comments
 (0)