Skip to content

Commit

Permalink
Merge pull request webmachine#266 from lemenkov/fix_deprecated_funs_i…
Browse files Browse the repository at this point in the history
…n_tests

Fix deprecation warning
  • Loading branch information
seancribbs committed Apr 7, 2016
2 parents 811010b + ea00cc6 commit c4bf1a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webmachine_perf_log_handler.erl
Expand Up @@ -132,15 +132,15 @@ fmt_plog(Time, Ip, Method, Path, {VM,Vm}, Status, Length, Mod, TTPD, TTPS) ->

non_standard_method_test() ->
LogData = #wm_log_data{resource_module=foo,
start_time=now(),
start_time=os:timestamp(),
method="FOO",
peer={127,0,0,1},
path="/",
version={1,1},
response_code=501,
response_length=1234,
end_time=now(),
finish_time=now()},
end_time=os:timestamp(),
finish_time=os:timestamp()},
LogEntry = format_req(LogData),
?assert(is_list(LogEntry)),
ok.
Expand Down

0 comments on commit c4bf1a6

Please sign in to comment.