Skip to content

Commit 270586a

Browse files
amankansal-ltclaude
andcommitted
test(provider-webdriver): create the FIFO with runCmd
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent e4fcf8b commit 270586a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎packages/provider-webdriver/src/webdriver-utils.test.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import assert from 'node:assert/strict';
2-
import { execFile } from 'node:child_process';
32
import { promises as fs } from 'node:fs';
43
import path from 'node:path';
5-
import { promisify } from 'node:util';
64
import { afterEach, test, vi } from 'vitest';
5+
import { runCmd } from '@agent-device/host-kit/command';
76
import { AppError } from '@agent-device/kernel/errors';
87
import { asOptionalRecord } from '@agent-device/kernel/record';
98
import {
@@ -18,7 +17,6 @@ import {
1817
import { mkdtempForTest } from './tmp-dir.fixtures.ts';
1918

2019
const realFetch = globalThis.fetch;
21-
const execFileAsync = promisify(execFile);
2220

2321
afterEach(() => {
2422
globalThis.fetch = realFetch;
@@ -214,7 +212,7 @@ test.skipIf(process.platform === 'win32')(
214212
const tempDir = await mkdtempForTest('agent-device-upload-form-fifo-');
215213
try {
216214
const fifoPath = path.join(tempDir, 'App.ipa');
217-
await execFileAsync('mkfifo', [fifoPath]);
215+
await runCmd('mkfifo', [fifoPath]);
218216

219217
await assert.rejects(
220218
appFileUploadForm(fifoPath, 'file', { provider: 'hub', service: 'Hub' }),

0 commit comments

Comments
 (0)