Replace the deprecated erlang:now() with os:timestamp() in tests
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user