From 41b3dabcda2cfd623e751f3c94caa512c6517779 Mon Sep 17 00:00:00 2001 From: mingshun Date: Sat, 3 Oct 2015 20:30:53 +0800 Subject: [PATCH] Replace the deprecated erlang:now() with os:timestamp() in tests --- test/config_test.erl | 2 +- test/repo_test.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/config_test.erl b/test/config_test.erl index 6db03fe..f1c7832 100644 --- a/test/config_test.erl +++ b/test/config_test.erl @@ -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), diff --git a/test/repo_test.erl b/test/repo_test.erl index 581f47d..3d6cf15 100644 --- a/test/repo_test.erl +++ b/test/repo_test.erl @@ -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),