proves fix for riak#372

This commit is contained in:
Joe DeVivo 2013-09-04 11:49:52 -07:00
parent 3b69c92fd2
commit 9c7ef69c0d

View File

@ -6,7 +6,19 @@
-include_lib("eunit/include/eunit.hrl").
confirm() ->
[Node] = rt:deploy_nodes(1, {cuttlefish, [{"ring_size", "8"}]}),
CuttlefishConf = [
{"ring_size", "8"},
{"leveldb.sync", true}
],
[Node] = rt:deploy_nodes(1, {cuttlefish, CuttlefishConf}),
{ok, RingSize} = rt:rpc_get_env(Node, [{riak_core, ring_creation_size}]),
?assertEqual(8, RingSize),
%% test leveldb sync typo
{ok, LevelDBSync} = rt:rpc_get_env(Node, [{eleveldb, sync}]),
?assertEqual(true, LevelDBSync),
pass.