revert: "test: comment out hstreamdb:stop_client"

This reverts commits:
3536b32ad2b126c27a1b0bd91e615069230931d7..
d63f10928d
This commit is contained in:
JimMoen 2024-03-28 14:32:18 +08:00
parent 34b5cd7bfd
commit cf29f97440
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -536,13 +536,13 @@ connect_direct_hstream(Name, Config) ->
client(_Name, _Config, N) when N =< 0 -> error(cannot_connect);
client(Name, Config, N) ->
try
%%_ = hstreamdb:stop_client(Name),
_ = hstreamdb:stop_client(Name),
{ok, Client} = hstreamdb:start_client(Name, default_options(Config)),
ok = hstreamdb_client:echo(Client),
Client
catch
Class:Error:Stk ->
ct:print("Error connecting: ~p, stacktrace: ~p", [{Class, Error}, Stk]),
Class:Error ->
ct:print("Error connecting: ~p", [{Class, Error}]),
ct:sleep(timer:seconds(1)),
client(Name, Config, N - 1)
end.