← Back to team overview

nunit-core team mailing list archive

[Bug 602761] Re: nunit-agent hangs after tests complete

 

We have downloaded 2.5.9.10348 and continue to see the nunit-agent-x86
process hanging around when using nunit-console-x86.  However, this
appears to occur only when we kill the nunit-console-x86 process during
the test.  If the test completes successfully, then all is well.

Cheers,
Dean

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/602761

Title:
  nunit-agent hangs after tests complete

Status in NUnit V2 Test Framework:
  Fix Released

Bug description:
  If a test fixture is being run in a different process (using nunit-agent), every now and then nunit-console will print out the results of the tests and exit, but the nunit-agent process will hang around indefinitely.

I believe the issue is with .NET Remoting, specifically the TestAgent/RemoteTestAgent.Stop operations.  Stop is marked as a one-way call, which tells the .NET Framework that the call can be completed asynchronously.  However, this also means that when nunit-console exits immediately after calling Stop, the message may never actually be sent to the nunit-agent.

Recommend removing the OneWay attribute so that the call is completed synchronously and thereby guaranteed to be delivered.





References