From ae0bb7727b36cdcd1cda7a53ed419b769474c7d0 Mon Sep 17 00:00:00 2001 From: Joao Patricio Date: Thu, 30 Mar 2023 20:32:48 +0100 Subject: [PATCH] wip --- tests/Feature/DockerCommandsTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Feature/DockerCommandsTest.php b/tests/Feature/DockerCommandsTest.php index 14f287590..3f3595f59 100644 --- a/tests/Feature/DockerCommandsTest.php +++ b/tests/Feature/DockerCommandsTest.php @@ -37,6 +37,11 @@ "docker rm $(docker ps --filter='name={$coolifyNamePrefix}*' -aq)", ], $host); + throw_if( + $activity->getExtraProperty('exitCode') !== 0, + new RuntimeException($activity->description), + ); + expect($activity->getExtraProperty('exitCode'))->toBe(0); // Assert there's no containers start with coolify_test_*