Skip to content

Commit

Permalink
Add timeout to pipe test for listing spelling errors
Browse files Browse the repository at this point in the history
Add a timeout of 3000ms to the pipe test for listing any spelling errors to
prevent potential timeout issues during execution.

Generated by gpt-3.5-turbo
  • Loading branch information
joone committed Feb 22, 2024
1 parent 313de0c commit 640a0f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/pipe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe("Test loz pipe mode", function () {

// echo "helo, world!" | loz "list any spelling errors"
it("should list any spelling errors", function (done) {
this.timeout(3000);
exec(
`echo "helo, world!" | node ${LOZ_BIN} "Find any spelling errors"`,
(error, stdout, stderr) => {
Expand Down

0 comments on commit 640a0f2

Please sign in to comment.