Skip to content

Commit

Permalink
Merge pull request #4 from math29/bugfix/setVariable-error-message
Browse files Browse the repository at this point in the history
bugfix: wrong unit used in SetVariable error message
  • Loading branch information
v1r3n authored Dec 16, 2023
2 parents 3c15237 + 4fe1aae commit c1bf109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private boolean validateVariablesSize(
if (payloadSize > maxThreshold * 1024) {
String errorMsg =
String.format(
"The variables payload size: %d of workflow: %s is greater than the permissible limit: %d bytes",
"The variables payload size: %d of workflow: %s is greater than the permissible limit: %d kilobytes",
payloadSize, workflowId, maxThreshold);
LOGGER.error(errorMsg);
task.setReasonForIncompletion(errorMsg);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SetVariableTaskSpec extends AbstractSpecification {
def EXTRA_HASHMAP_SIZE = 17
def expectedErrorMessage =
String.format(
"The variables payload size: %d of workflow: %s is greater than the permissible limit: %d bytes",
"The variables payload size: %d of workflow: %s is greater than the permissible limit: %d kilobytes",
EXTRA_HASHMAP_SIZE + maxThreshold * 1024 + 1, workflowInstanceId, maxThreshold)

then: "verify that the task is completed and variables were set"
Expand Down

0 comments on commit c1bf109

Please sign in to comment.