-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Hanging tests on single threaded Ubuntu environment #5308
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
Comments
One of the tests that is failing is There are many more tests in the same class that use the same pattern. I am not sure there is a reason we haven't made the tests async. @anpete? |
cc @rowanmiller who wrote this originally. |
@divega I think the reason here is to DRY-up the result verification. Suggest we split async into different tests like we do usually. NB. I have seen this pattern in some of our other tests, too. |
Talked to @smitpatel trying to figure out what the resolution was for this issue. We actually haven't changed these sync tests that invoke async APIs with |
@divega I would actually like to open this for backlog/cleanup. It's easy to write tests that can be run twice, once sync, once not, without using Wait. It would be good to cleanup all our tests to do that (where we need to test both sync/async). Let's discuss if you feel strongly it should remain closed. |
@ajcvickers sounds great. |
@smitpatel do you think we should do this clean up task now? |
Yes we should. It would be easy. And I suspect some day xUnit will start acting up seeing |
Note for implementer: Look at |
Remove unnecessary async keywords Postfix methods returning a Task with "Async" Fixes #5308
Remove unnecessary async keywords Postfix methods returning a Task with "Async" Fixes #5308
It seems like some tests in EF are hanging consistently on agent projectk-tc-ag6, see http://aspnetci/viewLog.html?buildId=90832&buildTypeId=XPlat_Linux_UbuntuUniverseCoreCLR&tab=buildLog#_focus=115519. I took a brief look at the test set up in https://github.com/aspnet/EntityFramework/blob/f732e3c7c1a680a944b9aafaf34bef88ed8a19c4/test/Microsoft.EntityFrameworkCore.FunctionalTests/DatabaseErrorLogStateTest.cs and it seems very similar to the problem I ran into in aspnet/Hosting#523. Probably needs some investigation.
The text was updated successfully, but these errors were encountered: