Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update test_jsonrpc_inets to run with Erlang/OTP R14B03.

  • Loading branch information...
commit fd467939c4fef5233f4e60161775f63be5614fe2 1 parent d2725fc
@tonyg authored
View
2  .gitignore
@@ -1,5 +1,5 @@
*.beam
-test/server_root/logs/
+test/server_root/logs/*_log
build
dist
doc
View
2  test/server_root/logs/README
@@ -0,0 +1,2 @@
+Directory in which the test_jsonrpc_inets inets httpd instance will
+place its log files.
View
8 test/test_jsonrpc_inets.erl
@@ -46,8 +46,12 @@ start() ->
type = <<"str">>}]}])).
start_httpd() ->
- rfc4627_jsonrpc:start(),
- httpd:start("test/server_root/conf/httpd.conf"),
+ ok = case rfc4627_jsonrpc:start() of
+ {ok, _JsonrpcPid} -> ok;
+ {error, {already_started, _JsonrpcPid}} -> ok
+ end,
+ ok = inets:start(),
+ {ok, _HttpdPid} = inets:start(httpd, [{file, "test/server_root/conf/httpd.conf"}]),
start().
%---------------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.