Replace the deprecated erlang:now() with os:timestamp() in tests

This commit is contained in:
mingshun
2015-10-03 20:30:53 +08:00
parent b2adb24079
commit 41b3dabcda
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ config_test_() ->
fun string_test/1]}.
start() ->
{A, B, C} = now(),
{A, B, C} = os:timestamp(),
N = node(),
TmpFile = io_lib:format("/tmp/geef-~p~p~p~p.gitconfig", [N, A, B, C]),
{ok, Config} = geef_config:open(TmpFile),

View File

@@ -11,7 +11,7 @@ repo_test_() ->
fun commit_tree_test/1]}.
start() ->
{A, B, C} = now(),
{A, B, C} = os:timestamp(),
N = node(),
TmpDir = io_lib:format("/tmp/geef-~p~p~p~p.git", [N, A, B, C]),
{ok, Repo} = geef_repo:init(TmpDir, true),