Skip to content

Commit

Permalink
Merge pull request #249 from esl/mu-unique-fresh_int_suffix
Browse files Browse the repository at this point in the history
Use unique names for fresh story users
  • Loading branch information
NelsonVides authored Dec 2, 2021
2 parents 41924b7 + c562491 commit 149222b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/escalus_fresh.erl
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,7 @@ select(UserResources, FullSpecs) ->
FullSpecs).

fresh_int_suffix() ->
{_, S, US} = erlang:timestamp(),
L = lists:flatten([integer_to_list(S rem 100), ".", integer_to_list(US)]),
list_to_binary(L).
integer_to_binary(erlang:unique_integer([monotonic, positive])).

case_name_suffix(Config) ->
CaseName = proplists:get_value(tc_name, Config, unnamed),
Expand Down

0 comments on commit 149222b

Please sign in to comment.