message: test(ci): trying out new spawning mechanism for sub test
diff: @@ -50,22 +50,27 @@ describe( 'GraphQL API Subscriptions', ( ) => {
  // set up app & two basic users to ping pong permissions around
  before( async function ( ) {
  - this.timeout( 5000 ) // we need to wait for the server to start in the child process!
  + this.timeout( 10000 ) // we need to wait for the server to start in the child process!
  await knex.migrate.rollback( )
  await knex.migrate.latest( )
  const childProcess = require( 'child_process' )
  - serverProcess = childProcess.exec( "npm run dev:server:test", ( error, stdout, stderr ) => {
  - if ( error ) {
  - console.error( `exec error: ${error}` )
  - return
  - }
  - console.log( `stdout: ${stdout}` )
  - console.error( `stderr: ${stderr}` )
  + serverProcess = childProcess.spawn( "npm", [ "run", "dev:server:test" ], { cwd: `${appRoot}` } )
  +
  + serverProcess.stdout.on( 'data', data => {
  + console.log( `stdout: ${data}` )
  + } )
  +
  + serverProcess.stderr.on( 'data', ( data ) => {
  + console.error( `stderr: ${data}` )
  + } )
  +
  + serverProcess.on( 'close', ( code ) => {
  + console.log( `child process exited with code ${code}` )
  } )
  - await sleep( 2000 )
  + await sleep( 5000 )
  userA.id = await createUser( userA )
  let token = await createPersonalAccessToken( userA.id, 'test token user A', [ 'streams:read', 'streams:write', 'users:read', 'users:email', 'tokens:write', 'tokens:read', 'profile:read', 'profile:email' ] )
  