Skip to content

Commit 68a8458

Browse files
authored
run mocha tests in parallel (#40)
1 parent 5342021 commit 68a8458

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"dev": "rollup --config --watch",
2626
"lint": "eslint src/ test/",
2727
"fix-lint": "eslint src/ test/ --fix",
28-
"test": "mocha out/test/*.test.{js,cjs,mjs} --timeout 15000"
28+
"test": "mocha out/test/*.test.{js,cjs,mjs} --parallel"
2929
},
3030
"repository": {
3131
"type": "git",

test/clientOptions.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class HttpRequestCountPolicy {
2727
}
2828

2929
describe("custom client options", function () {
30+
this.timeout(15000);
31+
3032
const fakeEndpoint = "https://azure.azconfig.io";
3133
beforeEach(() => {
3234
// Thus here mock it to reply 500, in which case the retry mechanism works.

test/requestTracing.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class HttpRequestHeadersPolicy {
2222
}
2323

2424
describe("request tracing", function () {
25+
this.timeout(15000);
26+
2527
const fakeEndpoint = "https://127.0.0.1"; // sufficient to test the request it sends out
2628
const headerPolicy = new HttpRequestHeadersPolicy();
2729
const position: "perCall" | "perRetry" = "perCall";

0 commit comments

Comments
 (0)