diff options
| author | Gal Zahavi <[email protected]> | 2025-08-19 18:24:42 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-20 01:24:42 +0000 |
| commit | c93c06711a383e92aa29eeb2555db400edeb16c7 (patch) | |
| tree | bce7df61f0fc74e57cd58f85436f7840b900dd9e /integration-tests | |
| parent | 2a71c10b8a5e43336edf77d140e9d206521c55d1 (diff) | |
Update shell service integration tests (#6598)
Diffstat (limited to 'integration-tests')
| -rw-r--r-- | integration-tests/shell-service.test.ts | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/integration-tests/shell-service.test.ts b/integration-tests/shell-service.test.ts index 58cf65e5..387d635c 100644 --- a/integration-tests/shell-service.test.ts +++ b/integration-tests/shell-service.test.ts @@ -16,7 +16,7 @@ describe('ShellExecutionService programmatic integration tests', () => { beforeAll(async () => { // Create a dedicated directory for this test suite to avoid conflicts. testDir = path.join( - process.env.INTEGRATION_TEST_FILE_DIR!, + process.env['INTEGRATION_TEST_FILE_DIR']!, 'shell-service-tests', ); await fs.mkdir(testDir, { recursive: true }); @@ -27,11 +27,12 @@ describe('ShellExecutionService programmatic integration tests', () => { const onOutputEvent = vi.fn(); const abortController = new AbortController(); - const handle = ShellExecutionService.execute( + const handle = await ShellExecutionService.execute( command, testDir, onOutputEvent, abortController.signal, + false, ); const result = await handle.result; @@ -52,11 +53,12 @@ describe('ShellExecutionService programmatic integration tests', () => { const onOutputEvent = vi.fn(); const abortController = new AbortController(); - const handle = ShellExecutionService.execute( + const handle = await ShellExecutionService.execute( command, testDir, onOutputEvent, abortController.signal, + false, ); const result = await handle.result; @@ -77,11 +79,12 @@ describe('ShellExecutionService programmatic integration tests', () => { const onOutputEvent = vi.fn(); const abortController = new AbortController(); - const handle = ShellExecutionService.execute( + const handle = await ShellExecutionService.execute( command, testDir, onOutputEvent, abortController.signal, + false, ); const result = await handle.result; @@ -98,11 +101,12 @@ describe('ShellExecutionService programmatic integration tests', () => { const onOutputEvent = vi.fn(); const abortController = new AbortController(); - const handle = ShellExecutionService.execute( + const handle = await ShellExecutionService.execute( command, testDir, onOutputEvent, abortController.signal, + false, ); // Abort shortly after starting |
