Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: increase timeout testCancelOuterFutureAfterStart to 60s (#2437)
* test: increase timeout testCancelOuterFutureAfterStart to 60s Fixes #1962. The test was written under a bad assumption that the main thread (the thread running the test) calls future.cancel always before the callable finishes in 2 second. In reality, there's no guarantee that CPU executes the main thread in a timely manner. (This possibility is actually already written in the source code comment) Increasing the timeout value from 2 seconds to 60 seconds will drastically reduce the likelihood of the failure.
- Loading branch information