Skip to content

Commit

Permalink
Add timeout to loz pipe test for converting input to uppercase
Browse files Browse the repository at this point in the history
Add a timeout of 3000ms to the test case that converts the input
to uppercase to ensure it completes within a reasonable time frame.

Generated by gpt-3.5-turbo
  • Loading branch information
joone committed Mar 1, 2024
1 parent 95b7212 commit 1d0f2d2
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 @@ -23,6 +23,7 @@ describe("Test loz pipe mode", function () {

// echo "hello, world!" | loz "convert the input to uppercase"
it("should convert the input to uppercase", function (done) {
this.timeout(3000);
exec(
`echo "hello, world!" | node ${LOZ_BIN} "convert the input to uppercase"`,
(error, stdout, stderr) => {
Expand Down

0 comments on commit 1d0f2d2

Please sign in to comment.