Skip to content

Conversation

@kirklund
Copy link
Contributor

Improve assertions so that failures in this test can be
diagnosed without using the IDE debugger.

This test is failing on my branch for GEODE-2644 but
the failure messages are very cryptic. This simple change
makes the assertion messages easy to understand. Since
this is valuable on develop, I'd like to merge the test change
to develop.

@kirklund
Copy link
Contributor Author

I also fixed warnings and replaced \n with LINE_SEPARATOR.

buffer = "change loglevel --loglevel";
candidate = parser.complete(buffer);
assertThat(candidate.size()).isEqualTo(8);
assertThat(candidate.getCandidates()).hasSize(10);

Choose a reason for hiding this comment

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

Was this an intentional change (8 changed to 10)? Now looks like it's a hard failure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops. Thanks for catching that. I cherry-picked and missed it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed and pushed.

Improve assertions so that failures in this test can be
diagnosed without using the IDE debugger.
@kirklund kirklund force-pushed the GEODE-2644-Appenders-GfshParserAutoCompletionTest branch from 3ab69c0 to 103381f Compare September 28, 2018 16:36
@kirklund kirklund merged commit 076fff8 into apache:develop Sep 28, 2018
@kirklund kirklund deleted the GEODE-2644-Appenders-GfshParserAutoCompletionTest branch October 18, 2019 18:51
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.

2 participants