Fix healthcheck test

Looks like the tests started failing on the options healthcheck PR
after merging the container name env var PR.
This commit is contained in:
Richard Taylor
2023-03-13 14:51:54 +00:00
parent 9b666e54f3
commit 3e0b71b631

View File

@@ -33,7 +33,7 @@ class CommandsHealthcheckTest < ActiveSupport::TestCase
test "run with custom options" do test "run with custom options" do
@config[:servers] = { "web" => { "hosts" => [ "1.1.1.1" ], "options" => { "mount" => "somewhere" } } } @config[:servers] = { "web" => { "hosts" => [ "1.1.1.1" ], "options" => { "mount" => "somewhere" } } }
assert_equal \ assert_equal \
"docker run --detach --name healthcheck-app-123 --publish 3999:3000 --label service=healthcheck-app --mount \"somewhere\" dhh/app:123", "docker run --detach --name healthcheck-app-123 --publish 3999:3000 --label service=healthcheck-app -e MRSK_CONTAINER_NAME=\"healthcheck-app\" --mount \"somewhere\" dhh/app:123",
new_command.run.join(" ") new_command.run.join(" ")
end end