tests: use assert_failure instead of test
This commit is contained in:
1 parent
88f661b6e7
commit
6b6518c699
1 file changed
+3
-3
@@ -80,7 +80,7 @@ teardown() {
|
|||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_output "FAILED: At least one env pair must be given"
|
assert_output "FAILED: At least one env pair must be given"
|
||||||
[ "$status" -eq 1 ]
|
assert_failure
|
||||||
|
|
||||||
run /bin/bash -c "dokku config:get $TEST_APP test_var1 | grep true"
|
run /bin/bash -c "dokku config:get $TEST_APP test_var1 | grep true"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
@@ -105,7 +105,7 @@ teardown() {
|
|||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_output "FAILED: At least one env pair must be given"
|
assert_output "FAILED: At least one env pair must be given"
|
||||||
[ "$status" -eq 1 ]
|
assert_failure
|
||||||
|
|
||||||
run /bin/bash -c "dokku --app $TEST_APP config:get test_var1 | grep true"
|
run /bin/bash -c "dokku --app $TEST_APP config:get test_var1 | grep true"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
@@ -150,7 +150,7 @@ teardown() {
|
|||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_output "FAILED: At least one key must be given"
|
assert_output "FAILED: At least one key must be given"
|
||||||
[ "$status" -eq 1 ]
|
assert_failure
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "(config) global config (herokuish)" {
|
@test "(config) global config (herokuish)" {
|
||||||
|
|||||||
Reference in new issue
Block a user