mirror of https://github.com/apache/druid.git
tested timestamps should be deterministic
This commit is contained in:
parent
19c3fd3363
commit
0543322c56
|
@ -33,13 +33,13 @@ public class PeriodDropRuleTest
|
|||
{
|
||||
private final static DataSegment.Builder builder = DataSegment.builder()
|
||||
.dataSource("test")
|
||||
.version(new DateTime().toString())
|
||||
.version(new DateTime("2012-12-31T01:00:00").toString())
|
||||
.shardSpec(new NoneShardSpec());
|
||||
|
||||
@Test
|
||||
public void testAppliesToAll()
|
||||
{
|
||||
DateTime now = new DateTime();
|
||||
DateTime now = new DateTime("2012-12-31T01:00:00");
|
||||
PeriodDropRule rule = new PeriodDropRule(
|
||||
new Period("P5000Y")
|
||||
);
|
||||
|
@ -67,7 +67,7 @@ public class PeriodDropRuleTest
|
|||
@Test
|
||||
public void testAppliesToPeriod()
|
||||
{
|
||||
DateTime now = new DateTime();
|
||||
DateTime now = new DateTime("2012-12-31T01:00:00");
|
||||
PeriodDropRule rule = new PeriodDropRule(
|
||||
new Period("P1M")
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue