Skip to content

Commit

Permalink
test: clean registration in abnormal cases
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Oct 7, 2023
1 parent b35e2c4 commit 517bc7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/quicer_reg_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ tc_shutdown_3_abnormal(_Config) ->
{ok, Reg} = quicer:new_registration(Name, Profile),
?assertEqual({error, badarg}, quicer:shutdown_registration(Reg, 1, 2)),
?assertEqual({error, badarg}, quicer:shutdown_registration(Reg, 1, foo)),
?assertEqual({error, badarg}, quicer:shutdown_registration(Reg, true, -1)).
?assertEqual({error, badarg}, quicer:shutdown_registration(Reg, true, -1)),
ok = quicer:shutdown_registration(Reg).

tc_shutdown_ok(_Config) ->
Name = atom_to_list(?FUNCTION_NAME),
Expand Down

0 comments on commit 517bc7a

Please sign in to comment.