Skip to content

Commit 9336e4c

Browse files
committed
Make CI not run tests in parallel
Seems to cause issues in CI
1 parent 2a3ae23 commit 9336e4c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"build": "node ./build.js",
1414
"ci-qt3tests": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha --paths --project test/qt3tests.ts",
1515
"ci-qt3testsxqueryx": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha --paths --project test/qt3testsXQueryX.ts",
16-
"ci-test": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha \"test/specs/**/*.ts\" --parallel",
17-
"ci-test-jscodegen": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha \"test/specs/**/*.ts\" --parallel -- --jscodegen",
16+
"ci-test": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha \"test/specs/**/*.ts\"",
17+
"ci-test-jscodegen": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha \"test/specs/**/*.ts\" -- --jscodegen",
1818
"ci-xqutstests": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha test/xqutsTests.ts",
19-
"ci-xqutstestsxqueryx": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha --paths --parallel test/xqutsTestsXQueryX.ts",
19+
"ci-xqutstestsxqueryx": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha --paths test/xqutsTestsXQueryX.ts",
2020
"coverage": "nyc report --reporter=text-lcov",
21-
"integrationtests": "ts-mocha --require test/testhook.js \"test/specs/parsing/**/*.ts\" --parallel",
21+
"integrationtests": "ts-mocha --require test/testhook.js \"test/specs/parsing/**/*.ts\"",
2222
"prepare": "npm run build",
2323
"qt3performance": "ts-node --project test/tsconfig.json -r tsconfig-paths/register test/qt3testsBenchmark.ts",
2424
"qt3tests": "ts-mocha --paths --project test/tsconfig.json test/qt3tests.ts",

test/specs/annotation.tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function assertValueType(
2525
context: AnnotationContext,
2626
followSpecificPath?: string[],
2727
) {
28-
const ast = parseExpression(expression, {});
28+
const ast = parseExpression(expression, { version: 3.1 });
2929
if (context) annotateAst(ast, context);
3030
else annotateAst(ast, new AnnotationContext(undefined));
3131

@@ -371,20 +371,20 @@ describe('Annotation counting', () => {
371371
['b', { type: ValueType.XSINTEGER, mult: SequenceMultiplicity.EXACTLY_ONE }],
372372
]);
373373
it('correctly counts add expressions', () => {
374-
const ast = parseExpression('2 + 1', {});
374+
const ast = parseExpression('2 + 1', { version: 3.1 });
375375
annotateAst(ast, new AnnotationContext(undefined));
376376
const [total, annotated] = countQueryBodyAnnotations(ast);
377377
chai.assert.equal(total, annotated);
378378
});
379379
it('correctly counts unannotated expressions', () => {
380-
const ast = parseExpression('$x + 1', {});
380+
const ast = parseExpression('$x + 1', { version: 3.1 });
381381
annotateAst(ast, context);
382382
const [total, annotated] = countQueryBodyAnnotations(ast);
383383
chai.assert.equal(annotated, total);
384384
chai.assert.equal(total, 3);
385385
});
386386
it('correctly counts unannotated expressions 2', () => {
387-
const ast = parseExpression('$b + math:sin($a)', {});
387+
const ast = parseExpression('$b + math:sin($a)', { version: 3.1 });
388388
annotateAst(ast, context);
389389
const [total, annotated] = countQueryBodyAnnotations(ast);
390390
chai.assert.equal(annotated, 2);

0 commit comments

Comments
 (0)