Skip to content

Commit

Permalink
Skip writing a big file test in CI and CITGM (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina authored Sep 8, 2023
1 parent aa53b40 commit 8514fb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/transport/big.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ const pipeline = promisify(stream.pipeline)
const { Writable } = stream
const sleep = promisify(setTimeout)

test('eight million lines', async ({ equal, comment }) => {
const skip = process.env.CI || process.env.CITGM

test('eight million lines', { skip }, async ({ equal, comment }) => {
const destination = file()
await execa(process.argv[0], [join(__dirname, '..', 'fixtures', 'transport-many-lines.js'), destination])

Expand Down
3 changes: 3 additions & 0 deletions test/transport/core.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ test('stdout in worker', async ({ not }) => {
for await (const chunk of child.stdout) {
actual += chunk
}
await immediate()
not(strip(actual).match(/Hello/), null)
})

Expand All @@ -485,6 +486,7 @@ test('log and exit before ready', async ({ not }) => {
cb()
}))
await once(child, 'close')
await immediate()
not(strip(actual).match(/Hello/), null)
})

Expand All @@ -508,6 +510,7 @@ test('string integer destination', async ({ not }) => {
cb()
}))
await once(child, 'close')
await immediate()
not(strip(actual).match(/Hello/), null)
})

Expand Down

0 comments on commit 8514fb8

Please sign in to comment.