From 3e0b71b631998f80226e230a6e415aec9964f262 Mon Sep 17 00:00:00 2001 From: Richard Taylor Date: Mon, 13 Mar 2023 14:51:54 +0000 Subject: [PATCH] Fix healthcheck test Looks like the tests started failing on the options healthcheck PR after merging the container name env var PR. --- test/commands/healthcheck_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/commands/healthcheck_test.rb b/test/commands/healthcheck_test.rb index cd1f0d2d..effd3ef3 100644 --- a/test/commands/healthcheck_test.rb +++ b/test/commands/healthcheck_test.rb @@ -33,7 +33,7 @@ class CommandsHealthcheckTest < ActiveSupport::TestCase test "run with custom options" do @config[:servers] = { "web" => { "hosts" => [ "1.1.1.1" ], "options" => { "mount" => "somewhere" } } } 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(" ") end