match query interval to granularity for this test

This commit is contained in:
xvrl 2013-01-22 19:31:31 -08:00
parent d7ea8e9afc
commit 35058786d9
1 changed files with 1 additions and 10 deletions

View File

@ -263,7 +263,7 @@ public class TimeseriesQueryRunnerTest
{ {
TimeseriesQuery query = Druids.newTimeseriesQueryBuilder() TimeseriesQuery query = Druids.newTimeseriesQueryBuilder()
.dataSource(QueryRunnerTestHelper.dataSource) .dataSource(QueryRunnerTestHelper.dataSource)
.intervals(QueryRunnerTestHelper.firstToThird) .intervals("2011-03-31T00:00:00-07:00/2011-04-02T00:00:00-07:00")
.aggregators( .aggregators(
Arrays.<AggregatorFactory>asList( Arrays.<AggregatorFactory>asList(
QueryRunnerTestHelper.rowsCount, QueryRunnerTestHelper.rowsCount,
@ -288,12 +288,6 @@ public class TimeseriesQueryRunnerTest
new TimeseriesResultValue( new TimeseriesResultValue(
ImmutableMap.<String, Object>of("rows", 13L, "idx", 5827L) ImmutableMap.<String, Object>of("rows", 13L, "idx", 5827L)
) )
),
new Result<TimeseriesResultValue>(
new DateTime("2011-04-02", DateTimeZone.forID("America/Los_Angeles")),
new TimeseriesResultValue(
ImmutableMap.<String, Object>of("rows", 0L, "idx", 0L)
)
) )
); );
@ -303,11 +297,8 @@ public class TimeseriesQueryRunnerTest
); );
TestHelper.assertExpectedResults(expectedResults, results); TestHelper.assertExpectedResults(expectedResults, results);
} }
@Test @Test
public void testTimeseriesWithVaryingGran() public void testTimeseriesWithVaryingGran()
{ {