Skip to content

Fix failure in AppendProcessorTests.testAppendingUniqueValueToScalar#62453

Merged
danhermann merged 2 commits intoelastic:masterfrom
danhermann:62411_fix_append_test
Sep 17, 2020
Merged

Fix failure in AppendProcessorTests.testAppendingUniqueValueToScalar#62453
danhermann merged 2 commits intoelastic:masterfrom
danhermann:62411_fix_append_test

Conversation

@danhermann
Copy link
Copy Markdown
Contributor

Fixes #62411

@danhermann danhermann added >test Issues or PRs that are addressing/adding tests :Distributed/Ingest Node Execution or management of Ingest Pipelines v8.0.0 v7.10.0 labels Sep 16, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Ingest)

@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Sep 16, 2020
Copy link
Copy Markdown
Contributor

@probakowski probakowski left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing this! Just small suggestion from my side


List<Object> valuesToAppend = new ArrayList<>();
String newValue = randomAlphaOfLengthBetween(1, 10);
String newValue = originalValue + randomAlphaOfLengthBetween(1, 10);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe use randomValueOtherThan? It'll communicate intent better, I think

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, @probakowski! I didn't know about the randomValueOtherThan method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Ingest Node Execution or management of Ingest Pipelines Team:Data Management (obsolete) DO NOT USE. This team no longer exists. >test Issues or PRs that are addressing/adding tests v7.10.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AppendProcessorTests.testAppendingUniqueValueToScalar fails on casting

4 participants