Skip to content

Commit

Permalink
Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
0x3333 committed Sep 13, 2023
1 parent 100b37f commit d54944c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function it_shows_help_successfully { #@test

function help_shows_usage { #@test
run_chronic
assert_line --index 0 "Usage: chronic <command> [args]..."
assert_line --index 0 "Usage: chronic [-t TIMEOUT] <command> [args]..."
}

function help_shows_the_version { #@test
Expand Down Expand Up @@ -89,4 +89,9 @@ function it_displays_standard_error_on_failure { #@test
assert_line "stderr: A stately pleasure-dome decree"
}

function it_displays_timeout_failure { #@test
run_chronic -t 1 bash -c 'sleep 5'
assert_line "**** Timeout, process killed! ****"
}

# EOF

0 comments on commit d54944c

Please sign in to comment.