Correct localization issue in test

This commit is contained in:
jamesagnew 2018-02-11 21:54:29 -05:00
parent 18e4d85625
commit a94a1370e7
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ public class StopWatchTest {
StopWatch sw = new StopWatch(DateUtils.addMinutes(new Date(), -4)); StopWatch sw = new StopWatch(DateUtils.addMinutes(new Date(), -4));
String throughput = sw.formatThroughput(60, TimeUnit.MINUTES); String throughput = sw.formatThroughput(60, TimeUnit.MINUTES);
ourLog.info("{} operations in {}ms = {} ops / second", 60, sw.getMillis(), throughput); ourLog.info("{} operations in {}ms = {} ops / second", 60, sw.getMillis(), throughput);
assertThat(throughput, oneOf("14.9", "15.0", "15.1")); assertThat(throughput, oneOf("14.9", "15.0", "15.1", "14,9", "15,0", "15,1"));
} }
private double calculateThroughput(int theMinutesElapsed, int theNumOperations) { private double calculateThroughput(int theMinutesElapsed, int theNumOperations) {