1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Fix assert in TestResult

sometimes the unit test where failing because the assert '>' didn't
hold. Use '>=' instead now.
This commit is contained in:
Florian Schmaus 2015-04-05 10:49:14 +02:00
parent 0a6ac76447
commit 38dc59eb8e

View file

@ -29,7 +29,7 @@ public abstract class TestResult {
public TestResult(Method testMethod, long startTime, long endTime, List<String> logMessages) { public TestResult(Method testMethod, long startTime, long endTime, List<String> logMessages) {
this.testMethod = testMethod; this.testMethod = testMethod;
assert (endTime > startTime); assert (endTime >= startTime);
this.startTime = startTime; this.startTime = startTime;
this.endTime = endTime; this.endTime = endTime;
this.duration = endTime - startTime; this.duration = endTime - startTime;