File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
test/WebJobs.Script.Tests/Workers/Rpc Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,7 @@ public async Task WorkerProcess_WaitForExit_Success_TaskCompletes()
274
274
// arrange
275
275
using Process process = GetProcess ( exitCode : 0 ) ;
276
276
_hostProcessMonitorMock . Setup ( m => m . RegisterChildProcess ( process ) ) ;
277
+ _hostProcessMonitorMock . Setup ( m => m . UnregisterChildProcess ( process ) ) ;
277
278
_workerProcessFactory . Setup ( m => m . CreateWorkerProcess ( It . IsNotNull < WorkerContext > ( ) ) ) . Returns ( process ) ;
278
279
using var rpcWorkerProcess = GetRpcWorkerConfigProcess (
279
280
TestHelpers . GetTestWorkerConfigsWithExecutableWorkingDirectory ( ) . ElementAt ( 0 ) ) ;
@@ -291,6 +292,7 @@ public async Task WorkerProcess_WaitForExit_Error_Rethrows()
291
292
// arrange
292
293
using Process process = GetProcess ( exitCode : - 1 ) ;
293
294
_hostProcessMonitorMock . Setup ( m => m . RegisterChildProcess ( process ) ) ;
295
+ _hostProcessMonitorMock . Setup ( m => m . UnregisterChildProcess ( process ) ) ;
294
296
_workerProcessFactory . Setup ( m => m . CreateWorkerProcess ( It . IsNotNull < WorkerContext > ( ) ) ) . Returns ( process ) ;
295
297
using var rpcWorkerProcess = GetRpcWorkerConfigProcess (
296
298
TestHelpers . GetTestWorkerConfigsWithExecutableWorkingDirectory ( ) . ElementAt ( 0 ) ) ;
You can’t perform that action at this time.
0 commit comments