Skip to content

Commit

Permalink
revert serve-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Dec 19, 2024
1 parent 974682b commit c4170ea
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions test/serve-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ process.on('SIGINT', async() => {
if (stopping) return;
stopping = true;
console.log('shutting down');
// await stopDocker();
await stopDocker();
process.exit(0);
});

Expand Down Expand Up @@ -85,20 +85,18 @@ const stopDocker = () => {
})
};

require('..');

// startDocker()
// .then(createDb)
// .then(createSchema)
// .then(seedDb)
// .then(resetAdminPassword)
// .then(generateSipTrace)
// .then(() => {
// console.log('ready for testing!');
// require('..');
// })
// .catch(async(err) => {
// console.error({err}, 'Error running integration test');
// await stopDocker();
// process.exit(-1);
// });
startDocker()
.then(createDb)
.then(createSchema)
.then(seedDb)
.then(resetAdminPassword)
.then(generateSipTrace)
.then(() => {
console.log('ready for testing!');
require('..');
})
.catch(async(err) => {
console.error({err}, 'Error running integration test');
await stopDocker();
process.exit(-1);
});

0 comments on commit c4170ea

Please sign in to comment.