Skip to content

Commit

Permalink
FIX: ci: test delay
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-js committed Dec 20, 2023
1 parent ae6d306 commit cd374c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { withRetry } from 'source/common/function.js'
import { runKit, argvFlag } from 'source/node/kit.js'

const retryCount = (!process.env.IS_CI || process.platform === 'linux')
? 1 // one chance should be enough for linux CI
? 1 // 1 more chance for linux CI
: 3 // 3 more chance for win32/darwin CI, since some net/fs test is still flaky
const retryNpmRunTest = (kit, name) => withRetry((failed, maxRetry) => {
try { return kit.RUN(`npm run ${name}`) } catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion source/common/function.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { setTimeoutAsync } from './time.js'
const { describe, it } = globalThis

const TIME_WAIT_SCALE = process.platform !== 'darwin' ? 1 : 10 // TODO: NOTE: macos fs watcher event seems to be both batched and late than linux/win32, so just wait longer
const TIME_SCALE = 1.5
const TIME_SCALE = process.platform === 'linux' ? 1.5 : 20

describe('Common.Function', () => {
it('debounce()', async () => { // TODO: DEPRECATE
Expand Down

0 comments on commit cd374c4

Please sign in to comment.