Skip to content

Commit 0d2cb2e

Browse files
committed
Add shu to test peer code paths in ra_SUITE and ra_system_SUITE
When starting remote peer nodes in tests, shu must be included in the code path alongside other ra dependencies. Without this, distributed tests fail with 'shu.app not found' errors. Made-with: Cursor
1 parent cf88e6f commit 0d2cb2e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/ra_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ start_remote_cluster(Num, PrivDir, ClusterName, Machine) ->
16251625
start_peer(Name, PrivDir) ->
16261626
Dir = "'" ++ filename:join(PrivDir, Name) ++ "'",
16271627
Pa = [filename:dirname(code:which(App))
1628-
|| App <- [aten, gen_batch_server, seshat, ra]],
1628+
|| App <- [aten, gen_batch_server, seshat, shu, ra]],
16291629
ct:pal("starting peer node ~ts for node ~ts with -pa ~ts and data_dir ~ts",
16301630
[Name, node(), Pa, Dir]),
16311631
{ok, _P, S} = ?CT_PEER(#{name => Name, args => ["-pa"] ++ Pa ++ ["-ra", "data_dir", Dir]}),

test/ra_system_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ start_peer(PrivDir) ->
223223
Dir0 = filename:join(PrivDir, Name),
224224
Dir = "'" ++ Dir0 ++ "'",
225225
Pa = [filename:dirname(code:which(App))
226-
|| App <- [aten, gen_batch_server, seshat, ra]],
226+
|| App <- [aten, gen_batch_server, seshat, shu, ra]],
227227
Args = ["-pa"] ++ Pa ++ ["-ra", "data_dir", Dir],
228228
ct:pal("starting child node ~ts for node ~ts~n", [Name, Args]),
229229
{ok, P, S} = ?CT_PEER(#{name => Name, args => Args}),

0 commit comments

Comments
 (0)