We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce95717 commit 12fe371Copy full SHA for 12fe371
wait-for.bats
@@ -12,3 +12,23 @@
12
[ "$status" -ne 0 ]
13
[ "$output" != "success" ]
14
}
15
+
16
+@test "support condensed option style" {
17
+ run ./wait-for -qt1 google.com:80 -- echo 'success'
18
19
+ [ "$output" = "success" ]
20
+}
21
22
+@test "timeout cannot be negative" {
23
+ run ./wait-for -t -1 google.com:80 -- echo 'success'
24
25
+ [ "$status" -ne 0 ]
26
+ [ "$output" != "success" ]
27
28
29
+@test "timeout cannot be empty" {
30
+ run ./wait-for -t -- google.com:80 -- echo 'success'
31
32
33
34
0 commit comments