diff --git a/lib/ts/testdata/sleep15.sh b/lib/testdata/sleep15.sh similarity index 100% rename from lib/ts/testdata/sleep15.sh rename to lib/testdata/sleep15.sh diff --git a/lib/ts/testdata/sleep3.sh b/lib/testdata/sleep3.sh similarity index 100% rename from lib/ts/testdata/sleep3.sh rename to lib/testdata/sleep3.sh diff --git a/lib/ts/src/lib.test.ts b/lib/ts/src/lib.test.ts index 47ebca0..9c59874 100644 --- a/lib/ts/src/lib.test.ts +++ b/lib/ts/src/lib.test.ts @@ -2,13 +2,13 @@ import {test} from 'vitest'; import {ParentIPC} from './lib.js'; test('test connection timeout', async ({expect}) => { - const parentIpc = new ParentIPC('testdata/sleep15.sh', []); + const parentIpc = new ParentIPC('../testdata/sleep15.sh', []); await parentIpc.start(); await expect(parentIpc.wait()).rejects.toThrowError('timed out'); }); 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 expect(parentIpc.wait()).rejects.toThrowError('command exited before connection established'); });