Skip to content

Commit

Permalink
[Test][Transform] fix UpdateTransformActionRequestTests failure (#79787
Browse files Browse the repository at this point in the history
…) (#79796)

fix corner case when description gets too long

fixes #79783
  • Loading branch information
Hendrik Muhs authored Oct 26, 2021
1 parent e58a8ec commit ae81c93
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ protected Request mutateInstance(Request instance) throws IOException {
case 1:
String description = update.getDescription() == null ? "" : update.getDescription();
description += randomAlphaOfLengthBetween(1, 5);
// fix corner case that description gets too long
if (description.length() > 1000) {
description = description.substring(description.length() - 1000, description.length());
}
update = new TransformConfigUpdate(
update.getSource(),
update.getDestination(),
Expand Down

0 comments on commit ae81c93

Please sign in to comment.