Github user sjcorbett commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/1174#discussion_r50962906
--- Diff:
brooklyn-server/core/src/test/java/org/apache/brooklyn/core/config/ConfigKeyConstraintTest.java
---
@@ -297,12 +299,17 @@ public void
testContextAwarePredicateInformedOfEntity() {
public void testQuickFutureResolved() {
// Result of task is -1, outside of the range specified by the
config key.
try {
-
app.createAndManageChild(EntitySpec.create(EntityRequiringConfigKeyInRange.class)
+ EntityRequiringConfigKeyInRange child =
app.createAndManageChild(EntitySpec.create(EntityRequiringConfigKeyInRange.class)
.configure(EntityRequiringConfigKeyInRange.RANGE,
sleepingTask(Duration.ZERO, -1)));
- fail("Expected exception when managing entity with incorrect
config");
+ // may or may not fail above, depending on speed, but should
fail if assert after forcing resolution
--- End diff --
I infer that the semantics of the behaviour under test should be improved.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---