Skip to content

Commit

Permalink
Tests: use node in path for SSL certificate generation
Browse files Browse the repository at this point in the history
Avoids parallel creating on the same directory by different shards
  • Loading branch information
dcorbacho committed Nov 25, 2024
1 parent 7814769 commit 73f9569
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,10 @@ ensure_rabbitmq_queues_cmd(Config) ->

ensure_ssl_certs(Config) ->
SrcDir = ?config(rabbitmq_ct_helpers_srcdir, Config),
Group = proplists:get_value(name,
?config(tc_group_properties, Config)),
Node = node(),
CertsMakeDir = filename:join([SrcDir, "tools", "tls-certs"]),
PrivDir = ?config(priv_dir, Config),
CertsDir = filename:join([PrivDir, Group, "certs"]),
CertsDir = filename:join([PrivDir, Node, "certs"]),
_ = filelib:ensure_dir(CertsDir),
_ = file:make_dir(CertsDir),
CertsPwd = proplists:get_value(rmq_certspwd, Config, ?SSL_CERT_PASSWORD),
Expand Down

0 comments on commit 73f9569

Please sign in to comment.