Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

CoordinatorTests#testLogsMessagesIfPublicationDelayed fails on Windows
at an assertion about a log message which includes a \n character.
This commit replaces that character with System.lineSeparator() to fix
this assertion.

Closes #79359

`CoordinatorTests#testLogsMessagesIfPublicationDelayed` fails on Windows
at an assertion about a log message which includes a `\n` character.
This commit replaces that character with `System.lineSeparator()` to fix
this assertion.

Closes elastic#79359
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.0.0 v7.16.0 labels Oct 18, 2021
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Oct 18, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@DaveCTurner DaveCTurner added the test-windows Trigger CI checks on Windows label Oct 18, 2021
@DaveCTurner
Copy link
Contributor Author

@elasticmachine test this please

@mark-vieira
Copy link
Contributor

@elasticmachine run elasticsearch-ci/part-1-windows

@mark-vieira
Copy link
Contributor

@elasticmachine update branch

Copy link
Contributor

@fcofdez fcofdez left a comment

Choose a reason for hiding this comment

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

LGTM

@DaveCTurner DaveCTurner added auto-backport-and-merge auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Oct 18, 2021
@DaveCTurner
Copy link
Contributor Author

Oh this is just stupid, multiline log messages are just invisible to MockLogAppender on Windows, see also #74303, I'm just going to skip this assertion.

@elasticsearchmachine elasticsearchmachine merged commit 08d42a1 into elastic:master Oct 18, 2021
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Oct 18, 2021
* Fix line separator in hot threads log assertion

`CoordinatorTests#testLogsMessagesIfPublicationDelayed` fails on Windows
at an assertion about a log message which includes a `\n` character.
This commit replaces that character with `System.lineSeparator()` to fix
this assertion.

Closes elastic#79359

* Skip assertion entirely

Co-authored-by: Elastic Machine <[email protected]>
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
7.x

elasticsearchmachine pushed a commit that referenced this pull request Oct 18, 2021
* Fix line separator in hot threads log assertion

`CoordinatorTests#testLogsMessagesIfPublicationDelayed` fails on Windows
at an assertion about a log message which includes a `\n` character.
This commit replaces that character with `System.lineSeparator()` to fix
this assertion.

Closes #79359

* Skip assertion entirely

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test Issues or PRs that are addressing/adding tests test-windows Trigger CI checks on Windows v7.16.0 v8.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CoordinatorTests fail on master (Windows only)

6 participants