diff options
author | Dan Gudmundsson <[email protected]> | 2015-06-24 07:59:00 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2015-06-30 09:26:49 +0200 |
commit | f940d1cc510b9eb86a2562f190825b17a31acee2 (patch) | |
tree | 54363e0cae29626ad0fc33e6dedd993044707646 /lib/mnesia/test/mnesia_atomicity_test.erl | |
parent | 74a95b3d511177a9b35c2b0272b9ca5511b6f750 (diff) | |
download | otp-f940d1cc510b9eb86a2562f190825b17a31acee2.tar.gz otp-f940d1cc510b9eb86a2562f190825b17a31acee2.tar.bz2 otp-f940d1cc510b9eb86a2562f190825b17a31acee2.zip |
Remove erlang:now() and random usage in tests
Diffstat (limited to 'lib/mnesia/test/mnesia_atomicity_test.erl')
-rw-r--r-- | lib/mnesia/test/mnesia_atomicity_test.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mnesia/test/mnesia_atomicity_test.erl b/lib/mnesia/test/mnesia_atomicity_test.erl index 1d9d9c35bc..e3e0eaaf75 100644 --- a/lib/mnesia/test/mnesia_atomicity_test.erl +++ b/lib/mnesia/test/mnesia_atomicity_test.erl @@ -557,8 +557,8 @@ start_lock_waiter(BlockOpA, BlockOpB, Config) -> ?verify_mnesia([N1], [N2]). mk_tab_name(Prefix) -> - {Mega, Sec, Micro} = erlang:now(), - list_to_atom(lists:concat([Prefix , Mega, '_', Sec, '_', Micro])). + Count = erlang:unique_integer([monotonic,positive]), + list_to_atom(lists:concat([Prefix , '_', Count])). lock_waiter_fun(Op, TabName, Val) -> case Op of |