api/test: make deepsource happy

This commit is contained in:
jj 2024-11-13 17:27:26 +00:00
parent f6bffe543c
commit cf40f0542f
No known key found for this signature in database

View file

@ -86,14 +86,12 @@ switch (action) {
break; break;
case "run-tests-for": case "run-tests-for":
const service = process.argv[3];
env.streamLifespan = 10000; env.streamLifespan = 10000;
env.apiURL = 'http://x/'; env.apiURL = 'http://x/';
randomizeCiphers(); randomizeCiphers();
try { try {
const { softFails } = await runTestsFor(service); const { softFails } = await runTestsFor(process.argv[3]);
process.exitCode = Number(!!softFails); process.exitCode = Number(!!softFails);
} catch(e) { } catch(e) {
console.error(e); console.error(e);