move testdata
This commit is contained in:
parent
d61e3d7aa6
commit
07c8367abb
@ -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');
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user