Skip to content

Commit b3d0359

Browse files
committed
test/helpers: Use ra_system:stop/1 instead of direct calls to supervisor
[Why] The previous implementation was used because Ra lacked an API to stop a system. Now it does, so use it instead of bypassing it.
1 parent 8c5600b commit b3d0359

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/helpers.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ start_ra_system(RaSystem) ->
6666

6767
stop_ra_system(#{ra_system := RaSystem,
6868
store_dir := StoreDir}) ->
69-
?assertEqual(ok, supervisor:terminate_child(ra_systems_sup, RaSystem)),
70-
?assertEqual(ok, supervisor:delete_child(ra_systems_sup, RaSystem)),
69+
?assertEqual(ok, ra_system:stop(RaSystem)),
7170
_ = remove_store_dir(StoreDir),
7271
ok.
7372

0 commit comments

Comments
 (0)