| Summary: | TimeoutExchangeTest running too long | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Thomas Becker <tbecker> | ||||
| Component: | client | Assignee: | Thomas Becker <tbecker> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | gregw, jetty-inbox, mgorovoy | ||||
| Version: | 7.4.2 | ||||||
| Target Milestone: | 7.5.x | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Thomas Becker
Created attachment 200290 [details]
proposed patch
Runtime reduced from >10s to ~2s Thomas, I've committed your patch with a few changes intended to make the test more readable. I also tested your changes on a slow machine, and fixed one of the test cases that failed in that environment. The end result run time is about 2.5s. Cheers, Michael remember when addressing these long test issues, it is often best to go to a solution that uses latches rather than just reducing timeouts. Timeouts will always be non-deterministic and latches can often reduce a 10s test to milliseconds as their is no need to wait more than minimal time. Resolved -> Closed |