mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
Merge pull request #877 from basho/feature/fix/RTS-354
adjust tests for fix
This commit is contained in:
commit
6d9e1d8fb7
@ -147,22 +147,23 @@ get_valid_select_data() ->
|
||||
Family = <<"family1">>,
|
||||
Series = <<"seriesX">>,
|
||||
Times = lists:seq(1, 10),
|
||||
[[Family, Series, X, get_varchar(), get_float()] || X <- Times].
|
||||
[[Family, Series, X, get_varchar(), get_float()] || X <- Times].
|
||||
|
||||
|
||||
-define(SPANNING_STEP, (1000*1000*60*5)).
|
||||
-define(SPANNING_STEP, (1000*60*5)).
|
||||
|
||||
get_valid_qry_spanning_quanta() ->
|
||||
EndTime = ?SPANNING_STEP * 10,
|
||||
StartTime = 1 + ?SPANNING_STEP * 1,
|
||||
EndTime = 1 + ?SPANNING_STEP * 10,
|
||||
lists:flatten(
|
||||
io_lib:format("select * from GeoCheckin Where time > 1 and time < ~b"
|
||||
io_lib:format("select * from GeoCheckin Where time > ~b and time < ~b"
|
||||
" and myfamily = 'family1' and myseries = 'seriesX'",
|
||||
[EndTime])).
|
||||
[StartTime, EndTime])).
|
||||
|
||||
get_valid_select_data_spanning_quanta() ->
|
||||
Family = <<"family1">>,
|
||||
Series = <<"seriesX">>,
|
||||
Times = lists:seq(1, ?SPANNING_STEP * 10, ?SPANNING_STEP), %% five-minute intervals, to span 15-min buckets
|
||||
Times = lists:seq(1 + ?SPANNING_STEP, 1 + ?SPANNING_STEP * 10, ?SPANNING_STEP), %% five-minute intervals, to span 15-min buckets
|
||||
[[Family, Series, X, get_varchar(), get_float()] || X <- Times].
|
||||
|
||||
|
||||
|
@ -21,6 +21,5 @@ confirm() ->
|
||||
Qry = get_valid_qry(),
|
||||
Expected = {
|
||||
timeseries_util:get_cols(docs),
|
||||
timeseries_util:exclusive_result_from_data(Data, 1, 9)},
|
||||
timeseries_util:exclusive_result_from_data(Data, 2, 9)},
|
||||
confirm_select(Cluster, TestType, DDL, Data, Qry, Expected).
|
||||
|
||||
|
@ -32,5 +32,5 @@ confirm() ->
|
||||
Qry = timeseries_util:get_valid_qry_spanning_quanta(),
|
||||
Expected = {
|
||||
timeseries_util:get_cols(docs),
|
||||
timeseries_util:exclusive_result_from_data(Data, 1, 9)},
|
||||
timeseries_util:exclusive_result_from_data(Data, 2, 9)},
|
||||
timeseries_util:confirm_select(single, normal, DDL, Data, Qry, Expected).
|
||||
|
@ -21,5 +21,5 @@ confirm() ->
|
||||
Qry = get_valid_qry(),
|
||||
Expected = {
|
||||
timeseries_util:get_cols(docs),
|
||||
timeseries_util:exclusive_result_from_data(Data, 1, 9)},
|
||||
timeseries_util:exclusive_result_from_data(Data, 2, 9)},
|
||||
confirm_select(Cluster, TestType, DDL, Data, Qry, Expected).
|
||||
|
Loading…
Reference in New Issue
Block a user