eclipse-platform / eclipse.platform.resources

Eclipse Public License 2.0
3 stars 18 forks source link

Wake up sleeping jobs before waiting on them #58

Closed iloveeclipse closed 2 years ago

iloveeclipse commented 2 years ago

CharsetDeltaJob.addToQueue(ICharsetListenerFilter) uses timeout of 500 ms before it starts working, so it may awake in the middle of the test.

So if we want to wait for some jobs in the test, we should awake them first, otherwise they won't be in the running/waiting state if we check that in waitForJobs() so we will not wait for them at all.

Most likely fixes issue https://github.com/eclipse-platform/eclipse.platform/issues/108

eclipse-releng-bot commented 2 years ago

The Jenkins build of this PR has now completed. See details at https://ci.eclipse.org/platform/job/eclipse.platform.resources/job/PR-58/1/

eclipse-releng-bot commented 2 years ago

The Jenkins build of this PR has now completed. See details at https://ci.eclipse.org/platform/job/eclipse.platform.resources/job/PR-58/2/