4592-jenkins_tests #1075

Merged
joan merged 27 commits from 4592-jenkins_tests into dev 2022-10-05 12:40:29 +00:00
2 changed files with 10 additions and 3 deletions
Showing only changes of commit 726b2d5eb2 - Show all commits

View File

@ -60,7 +60,8 @@ async function test() {
helpers: [],
});
jasmine.exitOnCompletion = false;
if (!isCI) jasmine.exitOnCompletion = false;
await jasmine.execute();
if (app) await app.disconnect();
if (container) await container.rm();

View File

@ -62,8 +62,14 @@ module.exports = Self => {
name: fileName
};
await fs.access(file.path);
let stream = fs.createReadStream(file.path);
try {
await fs.access(file.path);
} catch (error) {
await Self.createPdf(ctx, id);
}
const stream = fs.createReadStream(file.path);
return [stream, file.contentType, `filename="${file.name}"`];
} catch (error) {
if (error.code === 'ENOENT')