This commit is contained in:
Hoan HL
2025-11-18 16:13:28 +07:00
parent 1629f52962
commit a9d625d2e9
2 changed files with 18 additions and 17 deletions
+17 -17
View File
@@ -6,7 +6,7 @@ process.on('SIGINT', async() => {
if (stopping) return;
stopping = true;
console.log('shutting down');
// await stopDocker();
await stopDocker();
process.exit(0);
});
@@ -84,19 +84,19 @@ 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);
});
+1
View File
@@ -657,6 +657,7 @@ test('speech credentials tests', async(t) => {
use_for_tts: false,
api_key: 'asdasdasdasddsadasda',
model_id: 'eleven_multilingual_v2',
stt_model_id: 'scribe_v1',
api_uri: 'api.elevenlabs.io'
}
});