mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 00:25:22 +00:00
Make sure the httpd started exits with the test.
Now green when run in sequence: Test Results: pb_cipher_suites-bitcask: pass pb_security-bitcask : pass --------------------------------------------- 0 Tests Failed 2 Tests Passed That's 100.0% for those keeping score
This commit is contained in:
parent
1addf5207f
commit
41b60d0328
@ -28,10 +28,13 @@ confirm() ->
|
||||
make_certs:revoke(CertDir, "rootCA", "revokedCA"),
|
||||
|
||||
%% start a HTTP server to serve the CRLs
|
||||
inets:start(httpd, [{port, 8000}, {server_name, "localhost"},
|
||||
%%
|
||||
%% NB: we use the 'stand_alone' option to link the server to the
|
||||
%% test process, so it exits when the test process exits.
|
||||
{ok, _HTTPPid} = inets:start(httpd, [{port, 8000}, {server_name, "localhost"},
|
||||
{server_root, "/tmp"},
|
||||
{document_root, CertDir},
|
||||
{modules, [mod_get]}]),
|
||||
{modules, [mod_get]}], stand_alone),
|
||||
|
||||
lager:info("Deploy some nodes"),
|
||||
Conf = [{riak_core, [
|
||||
|
@ -41,10 +41,13 @@ confirm() ->
|
||||
make_certs:gencrl(CertDir, "site1.basho.com"),
|
||||
|
||||
%% start a HTTP server to serve the CRLs
|
||||
inets:start(httpd, [{port, 8000}, {server_name, "localhost"},
|
||||
%%
|
||||
%% NB: we use the 'stand_alone' option to link the server to the
|
||||
%% test process, so it exits when the test process exits.
|
||||
{ok, _HTTPPid} = inets:start(httpd, [{port, 8000}, {server_name, "localhost"},
|
||||
{server_root, "/tmp"},
|
||||
{document_root, CertDir},
|
||||
{modules, [mod_get]}]),
|
||||
{modules, [mod_get]}], stand_alone),
|
||||
|
||||
lager:info("Deploy some nodes"),
|
||||
PrivDir = rt:priv_dir(),
|
||||
|
Loading…
Reference in New Issue
Block a user