diff --git a/pom.xml b/pom.xml index 2d9ef8d..3cfb8b1 100644 --- a/pom.xml +++ b/pom.xml @@ -152,7 +152,7 @@ org.tap4j tap4j - 4.0.7 + 4.0.8 diff --git a/src/main/java/org/tap4j/plugin/model/TapTestResultResult.java b/src/main/java/org/tap4j/plugin/model/TapTestResultResult.java index d8547f8..63b2bd1 100644 --- a/src/main/java/org/tap4j/plugin/model/TapTestResultResult.java +++ b/src/main/java/org/tap4j/plugin/model/TapTestResultResult.java @@ -280,7 +280,7 @@ public float getDuration() { Object duration = diagnostic.get(DURATION_KEY); if (duration != null) { Float durationMS = Float.parseFloat(duration.toString()); - return durationMS.floatValue(); + return durationMS.floatValue() / 1000; } } return super.getDuration(); diff --git a/src/test/java/org/tap4j/plugin/issue16647/TestIssue16647.java b/src/test/java/org/tap4j/plugin/issue16647/TestIssue16647.java index 59311be..59c5b85 100644 --- a/src/test/java/org/tap4j/plugin/issue16647/TestIssue16647.java +++ b/src/test/java/org/tap4j/plugin/issue16647/TestIssue16647.java @@ -25,7 +25,7 @@ public void testDurationMs() throws IOException, InterruptedException, Execution "ok 1 - Input file opened\n" + "not ok 2 - First line of the input valid\n" + " ---\n" + - " duration_ms: 100.66\n" + + " duration_ms: 100660.00\n" + " ...\n"; project.getBuildersList().add(new TestBuilder() {