I'm using codeceptjs
with shelljs
.
In one of tests I'm invoking a Go application like this:
const shell = require('shelljs')
let execution = shell.exec('./myGoApplication')
execution.kill();
I tried to stop it with kill
with different params but it is not working.
Does anyone knows how to stop Go application from running?
EDIT:
This code doesn't stop either
execution.kill('SIGINT');