aboutsummaryrefslogtreecommitdiff
path: root/test/compilers/argument-parsers-tests.js
diff options
context:
space:
mode:
authorAustin Morton <apmorton@users.noreply.github.com>2020-03-07 01:50:49 -0500
committerGitHub <noreply@github.com>2020-03-07 01:50:49 -0500
commitcadbdf59ff7f349b8cd28177bc15d9f0ca66cc2f (patch)
tree5d9733b27c2e77333b2b6eaba788afe060e42847 /test/compilers/argument-parsers-tests.js
parent50f45966d4be2e5a005dd05b9ddc39d989664354 (diff)
downloadcompiler-explorer-cadbdf59ff7f349b8cd28177bc15d9f0ca66cc2f.tar.gz
compiler-explorer-cadbdf59ff7f349b8cd28177bc15d9f0ca66cc2f.zip
Switch to p-queue package, implement compilationEnvTimeoutMs, and improve temp cleanup logging (#1877)
These changes are an attempt to help diagnose a queue halting issue that decreases parallelism and prevents temp dir cleanup. see #1875
Diffstat (limited to 'test/compilers/argument-parsers-tests.js')
-rw-r--r--test/compilers/argument-parsers-tests.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/compilers/argument-parsers-tests.js b/test/compilers/argument-parsers-tests.js
index 23f263a60..95828994b 100644
--- a/test/compilers/argument-parsers-tests.js
+++ b/test/compilers/argument-parsers-tests.js
@@ -24,11 +24,10 @@
const chai = require('chai'),
FakeCompiler = require('../../lib/compilers/fake-for-test'),
- CompilationEnvironment = require('../../lib/compilation-env'),
chaiAsPromised = require("chai-as-promised"),
parsers = require('../../lib/compilers/argument-parsers'),
CompilerArguments = require('../../lib/compiler-arguments'),
- properties = require('../../lib/properties');
+ {makeCompilationEnvironment} = require('../utils.js');
chai.use(chaiAsPromised);
const should = chai.should();
@@ -40,8 +39,7 @@ let env;
function makeCompiler(stdout, stderr, code) {
if (env === undefined) {
- const compilerProps = new properties.CompilerProps(languages, properties.fakeProps({}));
- env = new CompilationEnvironment(compilerProps);
+ env = makeCompilationEnvironment({languages});
}
if (code === undefined) code = 0;