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]}.
|
fun string_test/1]}.
|
||||||
|
|
||||||
start() ->
|
start() ->
|
||||||
{A, B, C} = now(),
|
{A, B, C} = os:timestamp(),
|
||||||
N = node(),
|
N = node(),
|
||||||
TmpFile = io_lib:format("/tmp/geef-~p~p~p~p.gitconfig", [N, A, B, C]),
|
TmpFile = io_lib:format("/tmp/geef-~p~p~p~p.gitconfig", [N, A, B, C]),
|
||||||
{ok, Config} = geef_config:open(TmpFile),
|
{ok, Config} = geef_config:open(TmpFile),
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ repo_test_() ->
|
|||||||
fun commit_tree_test/1]}.
|
fun commit_tree_test/1]}.
|
||||||
|
|
||||||
start() ->
|
start() ->
|
||||||
{A, B, C} = now(),
|
{A, B, C} = os:timestamp(),
|
||||||
N = node(),
|
N = node(),
|
||||||
TmpDir = io_lib:format("/tmp/geef-~p~p~p~p.git", [N, A, B, C]),
|
TmpDir = io_lib:format("/tmp/geef-~p~p~p~p.git", [N, A, B, C]),
|
||||||
{ok, Repo} = geef_repo:init(TmpDir, true),
|
{ok, Repo} = geef_repo:init(TmpDir, true),
|
||||||
|
|||||||
Reference in New Issue
Block a user