From 2d180f5e0ff2b223117cf54f8c4ed384bbcdc003 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 16 Sep 2021 00:24:43 -0400 Subject: [PATCH] tests: remove extra call to list apps --- tests/unit/test_helper.bash | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/unit/test_helper.bash b/tests/unit/test_helper.bash index 5108705c0..da08bfff6 100644 --- a/tests/unit/test_helper.bash +++ b/tests/unit/test_helper.bash @@ -34,10 +34,7 @@ global_teardown() { cleanup_apps() { rm -rf $DOKKU_ROOT/*/nginx.conf - apps=$(dokku --quiet apps:list) - if [[ -n "${apps}" ]]; then - dokku --quiet apps:list | xargs -n1 dokku --force apps:destroy - fi + dokku --quiet apps:list | xargs --no-run-if-empty -n1 dokku --force apps:destroy } cleanup_containers() {