Skip to content

Commit

Permalink
karankraina/fix-tests
Browse files Browse the repository at this point in the history
tests: fix unit test
  • Loading branch information
karankraina authored Oct 15, 2024
2 parents 341c330 + aeeea51 commit f977b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/transport/syncTrue.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('thread-stream sync true should log synchronously', async (t) => {

const transport = pino.transport({
target: join(__dirname, '..', 'fixtures', 'to-file-transport.js'),
options: { destination: outputPath },
options: { destination: outputPath, flush: true },
sync: true
})
const instance = pino(transport)
Expand All @@ -32,7 +32,7 @@ test('thread-stream sync true should log synchronously', async (t) => {
let loopCounter = 0

// Start a synchronous loop
while (!interrupt && loopCounter < (process.env.MAX_TEST_LOOP_ITERATION || 5000)) {
while (!interrupt && loopCounter < (process.env.MAX_TEST_LOOP_ITERATION || 10000)) {
try {
loopCounter++
const data = getOutputLogLines()
Expand Down

0 comments on commit f977b11

Please sign in to comment.