-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase test stability and cleanup some logging/debug #478
Conversation
@@ -309,7 +310,7 @@ private Metadata readMetadataWithValidation(boolean validate) { | |||
final JsonNode instance; | |||
try (InputStream targetStream = new FileInputStream(metadataFile)) { | |||
instance = OBJECT_MAPPER.readTree(targetStream); | |||
baseVersion = instance.get("version"); | |||
baseVersion = instance.get(VERSION_PROPERTY_KEY); | |||
new MessageUpgrader("metadata", instance).upgrade(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be MessageUpgrader.METADATA_SCHEMA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -392,6 +393,9 @@ private Config readGeneratedConfig() { | |||
*/ | |||
@Before | |||
public void setUp() { | |||
// Old messages can sometimes take a while to clear out, so need some delay for stability. | |||
safeSleep(CLEAN_START_DELAY_MS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a TODO to minimize this time or change the strategy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
No description provided.