Skip to content

Commit 464df8f

Browse files
Andymhegazy
Andy
authored andcommitted
Fix build failure with newest @types/mocha (#21075)
1 parent b1a0261 commit 464df8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/harness/parallel/worker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace Harness.Parallel.Worker {
5555
retries() { return this; },
5656
slow() { return this; },
5757
timeout(n) {
58-
timeout = n;
58+
timeout = n as number;
5959
return this;
6060
},
6161
};
@@ -127,7 +127,7 @@ namespace Harness.Parallel.Worker {
127127
const fakeContext: Mocha.ITestCallbackContext = {
128128
skip() { return this; },
129129
timeout(n) {
130-
timeout = n;
130+
timeout = n as number;
131131
return this;
132132
},
133133
retries() { return this; },

0 commit comments

Comments
 (0)