diff options
author | Lars Thorsen <[email protected]> | 2015-04-29 10:13:39 +0200 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2015-05-08 12:32:15 +0200 |
commit | 2a2d6181184ccde3bc929981eeee662203142238 (patch) | |
tree | 3ceb52fc14d5211b2b78786d2e2117f6942f2491 /lib/cosFileTransfer/test | |
parent | c84295904be29cbcbd3f91d009db91eca94ff158 (diff) | |
download | otp-2a2d6181184ccde3bc929981eeee662203142238.tar.gz otp-2a2d6181184ccde3bc929981eeee662203142238.tar.bz2 otp-2a2d6181184ccde3bc929981eeee662203142238.zip |
[orber, cos*] Remove usage of erlang:now() in test suites
Diffstat (limited to 'lib/cosFileTransfer/test')
-rw-r--r-- | lib/cosFileTransfer/test/fileTransfer_SUITE.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/cosFileTransfer/test/fileTransfer_SUITE.erl b/lib/cosFileTransfer/test/fileTransfer_SUITE.erl index dfe6fabfab..5e75a9919f 100644 --- a/lib/cosFileTransfer/test/fileTransfer_SUITE.erl +++ b/lib/cosFileTransfer/test/fileTransfer_SUITE.erl @@ -732,8 +732,9 @@ create_file_on_source_node({'NATIVE', _}, _Config, Host, FileName, Path, Data) - ?match(ok, file:write_file(FileName, list_to_binary(Data))). create_name(Type) -> - {MSec, Sec, USec} = erlang:now(), - lists:concat([Type,'_',MSec, '_', Sec, '_', USec]). + Time = erlang:system_time(), + Unique = erlang:unique_integer([positive]), + lists:concat([Type, '_', Time, '_', Unique]). |