mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-07-04 19:21:53 +00:00
wip
This commit is contained in:
+17
-17
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user