Fix name of environment variable O_o

This commit is contained in:
Radon Rosborough 2020-08-23 09:16:08 -06:00
parent ccdff2ec5d
commit a7af89cf04
2 changed files with 2 additions and 2 deletions

View File

@ -68,4 +68,4 @@ RUN sudo cp -a /tmp/riju/* /home/docker/src/ && rm -rf /tmp/riju
WORKDIR /home/docker/src
RUN sudo deluser docker sudo
RUN RIJU_PRIVILEGED=1 CONCURRENCY=1 TIMEOUT_SECS=240 yarn test
RUN RIJU_PRIVILEGED=1 CONCURRENCY=1 TIMEOUT_SECS=30 yarn test

View File

@ -15,7 +15,7 @@ function parseIntOr(thing: any, def: number) {
return Number.isNaN(num) ? def : num;
}
const TIMEOUT_SECS = parseIntOr(process.env.TIMEOUT, 5);
const TIMEOUT_SECS = parseIntOr(process.env.TIMEOUT_SECS, 5);
const CONCURRENCY = parseIntOr(process.env.CONCURRENCY, 2);
function findPosition(str: string, idx: number) {