From 6ea5987f15eff9cb356febf3d7cb6dc453ca5651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wilson=20J=C3=BAnior?= Date: Tue, 23 Jul 2024 09:49:18 -0300 Subject: [PATCH] Add test to cover multiple processes --- tests/go/tests.bats | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/go/tests.bats b/tests/go/tests.bats index 9f216eb..e813400 100644 --- a/tests/go/tests.bats +++ b/tests/go/tests.bats @@ -184,3 +184,16 @@ load 'bats-assert-master/load' assert_success [[ "$output" == *"compiled using vendor"* ]] } + + +@test "test project with multiple processes" { + cp -a ./fixtures/multipleprocesses/* ${CURRENT_DIR}/ + run /var/lib/tsuru/deploy + assert_success + + [ -f /home/application/bin/api ] + [ -s /home/application/bin/api ] + + [ -f /home/application/bin/worker ] + [ -s /home/application/bin/worker ] +} \ No newline at end of file