Fix failing tests

This commit is contained in:
Kris De Volder
2017-08-02 15:15:24 -07:00
parent fd2416bb06
commit a4a8693aa4

View File

@@ -196,16 +196,16 @@ public class SchemaBasedYamlASTReconciler implements YamlASTReconciler {
if (typeUtil.isAtomic(type)) {
SchemaContextAware<ValueParser> parserProvider = typeUtil.getValueParser(type);
if (parserProvider!=null) {
parserProvider.safeWithContext(schemaContext).ifPresent(parser -> {
if (parser.longRunning()) {
slowDelayedConstraints.add(() -> {
delayedConstraints.add(() -> {
parserProvider.safeWithContext(schemaContext).ifPresent(parser -> {
if (parser.longRunning()) {
slowDelayedConstraints.add(() -> {
parse(ast, node, type, parser);
});
} else {
parse(ast, node, type, parser);
});
} else {
delayedConstraints.add(() -> {
parse(ast, node, type, parser);
});
}
}
});
});
}
} else {