Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test uses deprecated erlang:now() function. [JIRA: RIAK-2075] #143

Open
trevorriles opened this issue Aug 5, 2015 · 2 comments
Open

Test uses deprecated erlang:now() function. [JIRA: RIAK-2075] #143

trevorriles opened this issue Aug 5, 2015 · 2 comments

Comments

@trevorriles
Copy link

The erlang:now() function was deprecated in Erlang 18. The rebar.config sets warnings_as_errors which causes the tests to fail on compilation.

Looking for some direction as to the best way to fix this. An easy way out would be to ignore deprecation warnings for the file using the compile flag, but could result in missing other warnings in the future.

The failing testfile is test/rand_gen_1.erl

@Basho-JIRA Basho-JIRA changed the title Test uses deprecated erlang:now() function. Test uses deprecated erlang:now() function. [JIRA: RIAK-2075] Aug 5, 2015
@jonmeredith
Copy link
Contributor

@slfritchie do the sequences really require now(), or would os:timestamp() do the trick?

@trevorriles
Copy link
Author

I imagine os:timestamp() would be fine. I'll run some tests this evening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants