Closed
Description
Description
We mark hanging generated tests with @Timeout
annotation but sometimes this annotation does not work properly.
For example, the test method for com.alibaba.fastjson.parser.DefaultJSONParser.accept
sometimes significantly exceeds a timeout (see attached screen).
Visual proofs
Potential alternatives
Use another approach with assertTimeoutPreemptively
See https://stackoverflow.com/questions/57116801/how-to-fail-a-test-after-a-timeout-is-exceeded-in-junit-5/57116802#57116802 for more details.
Context
Migrated JIRA issue SAT-1671
Metadata
Metadata
Assignees
Type
Projects
Status
Done