Skip to content

Commit ba4b135

Browse files
Remove space from JMeter functions generated expressions parameters which can make components parsing fail
For instance, rpsThreadGroup limit was not being respected since parsing was failing due to parameter containing a space and the error was only reported in debug logs which were not visible to users by default.
1 parent 93c975a commit ba4b135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/util/JmeterFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static String from(String name, Object... args) {
1616
.map(a -> a instanceof Double || a instanceof Float
1717
? String.format(Locale.US, "%f", a)
1818
: a.toString().replace(",", "\\,"))
19-
.collect(Collectors.joining(", ")) + ")"
19+
.collect(Collectors.joining(",")) + ")"
2020
: "";
2121
return "${" + name + argsString + "}";
2222
}

0 commit comments

Comments
 (0)