-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.Threading.Tasks.Extensions tests hanging on WASM #38931
Comments
Tagging subscribers to this area: @tarekgh |
Is this xharness issue? /cc @akoeplinger |
I looked at it and yeah it's kind of an xharness issue. We only pump the threadpool but we don't pump the timer queue inside the xharness runner, so in the case of I'll know how to fix it. |
We only pumped the threadpool but we didn't pump the timer queue inside the xharness runner, so in the case of Task.Delay() it'll schedule a callback on the timer queue and that will never happen which leads to the infinite loop waiting for the test to finish. To fix that we call an internal method to pump the timer queue like we do for the threadpool. Requires an xharness bump to include dotnet/xharness#290 Fixes dotnet#38931
* WASM: Pump timer queue in xharness when running unit tests We only pumped the threadpool but we didn't pump the timer queue inside the xharness runner, so in the case of Task.Delay() it'll schedule a callback on the timer queue and that will never happen which leads to the infinite loop waiting for the test to finish. To fix that we call an internal method to pump the timer queue like we do for the threadpool. Requires an xharness bump to include dotnet/xharness#290 Fixes #38931 * Don't nullref if no timers were started
) * WASM: Pump timer queue in xharness when running unit tests We only pumped the threadpool but we didn't pump the timer queue inside the xharness runner, so in the case of Task.Delay() it'll schedule a callback on the timer queue and that will never happen which leads to the infinite loop waiting for the test to finish. To fix that we call an internal method to pump the timer queue like we do for the threadpool. Requires an xharness bump to include dotnet/xharness#290 Fixes dotnet#38931 * Don't nullref if no timers were started
Several tests from System.Threading.Tasks.Extensions are hanging when running the test suite on Browser WebAssembly.
It is suspected that "incomplete" tests in xharness lead to an infinite loop in the threadpool pump loop. #38815 (comment)
The text was updated successfully, but these errors were encountered: