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_config_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_config_test.erl')
-rw-r--r-- | lib/mnesia/test/mnesia_config_test.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mnesia/test/mnesia_config_test.erl b/lib/mnesia/test/mnesia_config_test.erl index c8a6a000c6..089fbc06dc 100644 --- a/lib/mnesia/test/mnesia_config_test.erl +++ b/lib/mnesia/test/mnesia_config_test.erl @@ -1206,7 +1206,7 @@ dynamic_ext(Config) when is_list(Config) -> end, [Check(Test) || Test <- [{tab1, ram_copies},{tab2, disc_copies},{tab3, disc_only_copies}]], - T = now(), + T = erlang:unique_integer(), ?match(ok, mnesia:dirty_write({tab0, 42, T})), ?match(ok, mnesia:dirty_write({tab1, 42, T})), ?match(ok, mnesia:dirty_write({tab2, 42, T})), @@ -1284,7 +1284,7 @@ check_storage(Me, Orig, Other) -> mnesia_test_lib:kill_mnesia([Orig]), mnesia_test_lib:kill_mnesia(Other), - T = now(), + T = erlang:unique_integer(), ?match(ok, rpc:call(Me, mnesia, dirty_write, [{tab2, 42, T}])), ?match(stopped, rpc:call(Me, mnesia, stop, [])), ?match(ok, rpc:call(Me, mnesia, start, [])), |