Skip to content

best way to save what you love

api/test: make deepsource happy

jjcf40f0542f7e
diff --git a/api/src/util/test.js b/api/src/util/test.js
index a8b70fd3..efb0f3a5 100644
--- a/api/src/util/test.js
+++ b/api/src/util/test.js
@@ -86,14 +86,12 @@ switch (action) {
break;
case "run-tests-for":
- const service = process.argv[3];
-
env.streamLifespan = 10000;
env.apiURL = 'http://x/';
randomizeCiphers();
try {
- const { softFails } = await runTestsFor(service);
+ const { softFails } = await runTestsFor(process.argv[3]);
process.exitCode = Number(!!softFails);
} catch(e) {
console.error(e);