From 4967cc1d1c68f2de6f4d8c4b52a989b9c0cb72a9 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 1 Aug 2021 20:13:50 -0400 Subject: [PATCH] fix: do not manually create an app during tests This will cause weird things to happen due to not initializing the app correctly. --- tests/unit/nginx-vhosts_2.bats | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unit/nginx-vhosts_2.bats b/tests/unit/nginx-vhosts_2.bats index ed985806f..7769a058d 100644 --- a/tests/unit/nginx-vhosts_2.bats +++ b/tests/unit/nginx-vhosts_2.bats @@ -36,9 +36,14 @@ teardown() { assert_ssl_domain "wildcard2.dokku.me" } -@test "(nginx-vhosts) nginx:build-config (wildcard SSL and unrelated domain)" { +@test "(nginx-vhosts) nginx:build-config (wildcard SSL and unrelated domain) 1" { destroy_app TEST_APP="${TEST_APP}.example.com" + run /bin/bash -c "dokku apps:create $TEST_APP" + echo "output: $output" + echo "status: $status" + assert_success + setup_test_tls wildcard deploy_app nodejs-express dokku@dokku.me:$TEST_APP run /bin/bash -c "dokku nginx:show-config $TEST_APP | grep -e '*.dokku.me' | wc -l"