#6487 - Stop test container when finish #1884

Merged
jsegarra merged 2 commits from 6487_stop_test_container into dev 2023-12-11 11:47:34 +00:00
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,10 @@ process.on('warning', warning => {
console.log(warning.stack);
});
process.on('SIGUSR2', async() => {
if (container) await container.rm();
});
process.on('exit', async function() {
if (container) await container.rm();
});