Skip to content
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

Merged
merged 15 commits into from
Oct 11, 2022

Conversation

grafnu
Copy link
Collaborator

@grafnu grafnu commented Oct 11, 2022

No description provided.

@@ -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();
Copy link
Collaborator

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

Copy link
Collaborator Author

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);
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@grafnu grafnu merged commit 234f7fb into faucetsdn:master Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants