Skip to content

Commit

Permalink
Use init:stop() to stop peers in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arcusfelis committed May 13, 2024
1 parent a211b72 commit 07839a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/cets_test_peer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ name(Node) ->

start_node(Id) ->
{ok, Peer, Node} = ?CT_PEER(#{
name => name(Id), connection => standard_io, args => extra_args(Id)
name => name(Id),
connection => standard_io,
args => extra_args(Id),
shutdown => 3000
}),
%% Register so we can find Peer process later in code
register(node_to_peer_name(Node), Peer),
Expand Down

0 comments on commit 07839a6

Please sign in to comment.