mirror of https://github.com/apache/druid.git
Merge branch 'master' into az
This commit is contained in:
commit
d3bc077ecd
|
@ -131,6 +131,6 @@ public class EC2AutoScalingStrategyTest
|
||||||
AutoScalingData deleted = strategy.terminate(Arrays.asList("dummyIP"));
|
AutoScalingData deleted = strategy.terminate(Arrays.asList("dummyIP"));
|
||||||
|
|
||||||
Assert.assertEquals(deleted.getNodeIds().size(), 1);
|
Assert.assertEquals(deleted.getNodeIds().size(), 1);
|
||||||
Assert.assertEquals(String.format("%s:8080", IP), deleted.getNodeIds().get(0));
|
Assert.assertEquals(INSTANCE_ID, deleted.getNodeIds().get(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,8 +36,8 @@ public class ServerTimeRejectionPolicyFactoryTest
|
||||||
RejectionPolicy rejectionPolicy = new ServerTimeRejectionPolicyFactory().create(period);
|
RejectionPolicy rejectionPolicy = new ServerTimeRejectionPolicyFactory().create(period);
|
||||||
|
|
||||||
DateTime now = new DateTime();
|
DateTime now = new DateTime();
|
||||||
DateTime past = now.minus(period).minus(1);
|
DateTime past = now.minus(period).minus(100);
|
||||||
DateTime future = now.plus(period).plus(1);
|
DateTime future = now.plus(period).plus(100);
|
||||||
|
|
||||||
Assert.assertTrue(rejectionPolicy.accept(now.getMillis()));
|
Assert.assertTrue(rejectionPolicy.accept(now.getMillis()));
|
||||||
Assert.assertFalse(rejectionPolicy.accept(past.getMillis()));
|
Assert.assertFalse(rejectionPolicy.accept(past.getMillis()));
|
||||||
|
|
Loading…
Reference in New Issue