Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Code - Bug - Unclear Impact
-
Low
-
Low Hanging Fruit
-
Unit Test
-
All
-
None
-
Description
The test case uses relative time value for assertion. It is flaky since test execution could be delayed depending on the test environment.
Error Message
org.opentest4j.AssertionFailedError: Timeout didn't account for activity time. Took 1219ms should have taken at most 1100ms ==> expected: <true> but was: <false>
Stacktrace
org.opentest4j.AssertionFailedError: Timeout didn't account for activity time. Took 1219ms should have taken at most 1100ms ==> expected: <true> but was: <false> at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at app//org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at app//org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at app//org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:211) at app//org.apache.cassandra.spark.utils.SSTableInputStreamTests.testTimeoutShouldAccountForActivityTime(SSTableInputStreamTests.java:234) ...
Attachments
Issue Links
- links to