On Tue, 27 Feb 2024 20:01:20 GMT, Joe Darcy <da...@openjdk.org> wrote:
>> What is the issue with this? Is there a different way to set a timeout? The >> test tests that format does not take a long time to run so I would like to >> have a timeout > >> What is the issue with this? Is there a different way to set a timeout? The >> test tests that format does not take a long time to run so I would like to >> have a timeout > > Hard-coded timeout in a test are generally considered harmful as the test > suite is run on a wide variety of systems, a single value could be too large > for fast systems and too small for slow ones. The jtreg harness has an > overall `-timeout:N` factor which can scale up or down all the timeouts of > individual tests. I don't know offhand if there is an existing idiom to do > this with junit tests from within jtreg. Removed that timeout. Test fails before patch even when timeout factor is 10. Passes after patch within seconds. Default timeout should be good ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18033#discussion_r1505158893