move testdata

This commit is contained in:
Egor Aristov 2025-11-17 09:33:36 +03:00
parent d61e3d7aa6
commit 07c8367abb
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F
3 changed files with 2 additions and 2 deletions

View File

@ -2,13 +2,13 @@ import {test} from 'vitest';
import {ParentIPC} from './lib.js'; import {ParentIPC} from './lib.js';
test('test connection timeout', async ({expect}) => { test('test connection timeout', async ({expect}) => {
const parentIpc = new ParentIPC('testdata/sleep15.sh', []); const parentIpc = new ParentIPC('../testdata/sleep15.sh', []);
await parentIpc.start(); await parentIpc.start();
await expect(parentIpc.wait()).rejects.toThrowError('timed out'); await expect(parentIpc.wait()).rejects.toThrowError('timed out');
}); });
test('test process stop before connection accept', async ({expect}) => { test('test process stop before connection accept', async ({expect}) => {
const parentIpc = new ParentIPC('testdata/sleep3.sh', []); const parentIpc = new ParentIPC('../testdata/sleep3.sh', []);
await parentIpc.start(); await parentIpc.start();
await expect(parentIpc.wait()).rejects.toThrowError('command exited before connection established'); await expect(parentIpc.wait()).rejects.toThrowError('command exited before connection established');
}); });