Skip to content

MetricsTraceTest.java failes due to JVM using local decimal punctuation #394

@Setus

Description

@Setus

Here in Norway (entire Europe I guess), the JVM seems to prefer to use commas for decimal punctuation as opposed to dots (4,5 instead of 4.5), which causes the aforementioned test to fail when it's expecting results using dots. I tried to do a pull request just earlier, but it seems the build crashed when I tried to submit my change (and I wasn't a member yet)
public String prettyPrintDatum(Metric datum) {
return String.format(Locale.US, "min: %.2f, max: %.2f, sum: %.2f, mean: %.2f, std dev: %.2f",
datum.min, datum.max, datum.sum, datum.mean, datum.standardDeviation);
}
In addition, the build seemed to complain a lot about gradle failing. Personally, I've had to install gradle 2.10 to make shadowjar work.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions