Merge pull request #954 from basho/feature/jrd/toggle-pb-t2b

Test term_to_binary
This commit is contained in:
Brett Hazen 2015-12-07 18:18:15 -07:00
commit 860965cd46

View File

@ -18,7 +18,8 @@
%% under the License.
%%
%% -------------------------------------------------------------------
%% @doc A module to test riak_ts basic create bucket/put/select cycle.
%% @doc A module to test riak_ts basic create bucket/put/select cycle,
%% including testing native Erlang term_to_binary encoding.
-module(ts_basic).
-behavior(riak_test).
@ -80,6 +81,18 @@ confirm_all_from_node(Node, Data, PvalP1, PvalP2) ->
ok = confirm_get(C, lists:nth(12, Data)),
ok = confirm_nx_get(C),
%% Switch to native mode and repeat a few tests
riakc_pb_socket:use_native_encoding(C, true),
%% 5 (redux). select
ok = confirm_select(C, PvalP1, PvalP2),
%% 6 (redux). single-key get some data
ok = confirm_get(C, lists:nth(12, Data)),
ok = confirm_nx_get(C),
riakc_pb_socket:use_native_encoding(C, false),
ok = confirm_list_keys(C),
ok = confirm_delete_all(C).