There was an error while loading. Please reload this page.
1 parent 0cf53d1 commit 9f73b4aCopy full SHA for 9f73b4a
1 file changed
packages/mdc-syntax/test/index.test.ts
@@ -28,7 +28,8 @@ function parseTimeout(timeoutStr: string): number {
28
29
const value = Number.parseInt(match[1], 10)
30
const unit = match[2]
31
- return unit === 's' ? value * 1000 : value
+ const ms = unit === 's' ? value * 1000 : value
32
+ return ms + (process.env.GITHUB_ACTIONS ? 5 : 0) /* add 5ms to avoid random Github Actions failures */
33
}
34
35
function extractFrontmatter(content: string): { timeouts?: TestCase['timeouts'], body: string, options?: TestCase['options'] } {
0 commit comments