Skip to content

Commit

Permalink
Fix a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
tai2 committed Nov 2, 2023
1 parent 87bcacf commit 86ba17f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/decor_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,8 @@ Deno.test(
'# A new section appended in tests\n',
)

// Terminate the process
// Wait for the output updated
await delay(100)
process.kill('SIGINT')
await process.output()

// Validation
const outputContent = Deno.readTextFileSync(outputPath)
Expand All @@ -175,6 +173,10 @@ Deno.test(
'A new section appended in tests',
)

// Terminate the process
process.kill('SIGINT')
await process.output()

// Clean up temp directory
Deno.removeSync(tempDirPath, { recursive: true })
},
Expand Down

0 comments on commit 86ba17f

Please sign in to comment.