-
Notifications
You must be signed in to change notification settings - Fork 10.3k
NpmScriptRunner leaves NodeJs running (after test session) #5239
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
With the latest .NET Core (v2.2.204), I'm still having I recently changed my tests startup to use a real web server (i.e. I stumbled on this issue from the archived JavaScriptServices repo: aspnet/JavaScriptServices#270. @SteveSandersonMS, sorry the direct tag, but you were the one who closed that aspnet/JavaScriptServices#270 issue. My experience seems to show that it is not fixed, at the very least, not fully fixed... |
I'm having this issue con 2.2.300 too. I use the Readt template. When I stop Visual Studio Debugging, the console keeps open with the title "npm" until I close it manually. Looking at the code, I don't see any code to close npm. It should use IApplicationLifetime to close the process on Shutdown. |
We're closing this issue as this doesn't align with our long-term plans in this area. You can read more details about our vision for this area at #12890. |
@mkArtakMSFT The middleware being referenced by this issue (
The post does not mention |
Seems this was a mistake. we will, however, track the issue as part of the referenced issue: #5204 |
When running the functional tests of my dotnet core / angular app I noticed that the NodeJS processes are not stopped after my tests finishes. After 5 minutes after my tests completed, they are still there...
My NUnit
OneTimeTearDown()
also seems to be hanging when that happens. I'm guessing that's because I'm trying to dispose the web server in it.I'm creating the server with
_server = new WebApplicationFactory<Startup>()
and calling both_server.Server?.Dispose();
and_server?.Dispose();
in the tests' teardown, just in case.The culprit section in
Startup
is:I went through the source a bit and in the
NpmScriptRunner
, there's an external npm process created that never seems to be killed and no reference to theprocess
variable is maintained. Where is this process terminated? Could that be it?More findings:
Related issues:
The text was updated successfully, but these errors were encountered: