Put locks in a locks directory. Ensure that locks directory exits on a primary host.

This commit is contained in:
Igor Alexandrov
2024-03-27 12:04:39 +04:00
parent 43672ec9a5
commit cee449c269
7 changed files with 37 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ class CliAppTest < CliTestCase
end
test "boot uses group strategy when specified" do
Kamal::Cli::App.any_instance.stubs(:on).with("1.1.1.1").twice # acquire & release lock
Kamal::Cli::App.any_instance.stubs(:on).with("1.1.1.1").times(3) # ensure locks dir, acquire & release lock
Kamal::Cli::App.any_instance.stubs(:on).with([ "1.1.1.1" ]) # tag container
# Strategy is used when booting the containers