11import IPOS from '../main'
22import subProcessIPCLoopback from './subProcessIPCLoopback'
3- import { withoutProcessSendSync } from './withoutProcessSendSync '
3+ import { withoutProcessSend } from './withoutProcessSend '
44
55describe ( 'Initialising IPOS' , ( ) => {
66 it ( 'Create new instance in a main process' , ( ) => {
77 // this is a subprocess anyway
88 // just simulate main process by setting process.send to undefined (jamming the subprocess detection)
9- withoutProcessSendSync ( ( ) => {
9+ withoutProcessSend ( ( ) => {
1010 let ipos
1111 expect ( ( ) => ipos = IPOS . new ( ) ) . not . toThrow ( )
1212 expect ( ipos ) . toBeInstanceOf ( IPOS )
@@ -33,7 +33,7 @@ describe('Initialising IPOS', () => {
3333
3434 const sub_ipos : Promise < IPOS > = IPOS . new ( ) as Promise < IPOS >
3535 let main_ipos : IPOS
36- withoutProcessSendSync ( ( ) => {
36+ withoutProcessSend ( ( ) => {
3737 main_ipos = IPOS . new ( ) as IPOS
3838 } )
3939
@@ -58,7 +58,7 @@ describe('Initialising IPOS', () => {
5858 const sub_process = new subProcessIPCLoopback ( )
5959
6060 let main_ipos : IPOS
61- withoutProcessSendSync ( ( ) => {
61+ withoutProcessSend ( ( ) => {
6262 main_ipos = IPOS . new ( ) as IPOS
6363 } )
6464
0 commit comments