Fix failing tests

This commit is contained in:
Tobias Bühlmann
2023-03-13 17:36:02 +01:00
parent d2f76dac6b
commit 72e0184e9f
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class CommandsAppTest < ActiveSupport::TestCase
assert_equal \
"docker run --detach --restart unless-stopped --log-opt max-size=10m --name app-jobs-999 -e MRSK_CONTAINER_NAME=\"app-jobs-999\" -e RAILS_MASTER_KEY=\"456\" --label service=\"app\" --label role=\"jobs\" --mount \"somewhere\" --cap-add dhh/app:999 bin/jobs",
@app.run(role: :jobs).join(" ")
@app.run.join(" ")
end
test "start" do

View File

@@ -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