From 38dc59eb8e76a342164d7dc32e8d70213633e31a Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 5 Apr 2015 10:49:14 +0200 Subject: [PATCH] Fix assert in TestResult sometimes the unit test where failing because the assert '>' didn't hold. Use '>=' instead now. --- .../main/java/org/igniterealtime/smack/inttest/TestResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/TestResult.java b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/TestResult.java index 4dd585c0c..86267953b 100644 --- a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/TestResult.java +++ b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/TestResult.java @@ -29,7 +29,7 @@ public abstract class TestResult { public TestResult(Method testMethod, long startTime, long endTime, List logMessages) { this.testMethod = testMethod; - assert (endTime > startTime); + assert (endTime >= startTime); this.startTime = startTime; this.endTime = endTime; this.duration = endTime - startTime;