We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d62fcc3 commit ae37d72Copy full SHA for ae37d72
wait-for.bats
@@ -2,7 +2,7 @@
2
3
@test "google should be immediately found" {
4
run ./wait-for google.com:80 -- echo 'success'
5
-
+
6
[ "$output" = "success" ]
7
}
8
@@ -12,3 +12,12 @@
12
[ "$status" -ne 0 ]
13
[ "$output" != "success" ]
14
15
16
+@test "preserve existing environment variable" {
17
+ HOST=myweb.com
18
+ PORT=8080
19
+ run ./wait-for google.com:80 -- echo 'success'
20
21
+ [ "$(echo $HOST)" = 'myweb.com' ]
22
+ [ "$(echo $PORT)" = '8080' ]
23
+}
0 commit comments