File tree 1 file changed +8
-2
lines changed
test/PowerShellEditorServices.Test.E2E
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- // Copyright (c) Microsoft Corporation.
1
+ // Copyright (c) Microsoft Corporation.
2
2
// Licensed under the MIT License.
3
3
4
4
using System ;
19
19
namespace PowerShellEditorServices . Test . E2E
20
20
{
21
21
[ Trait ( "Category" , "DAP" ) ]
22
- public class DebugAdapterProtocolMessageTests : IAsyncLifetime
22
+ public class DebugAdapterProtocolMessageTests : IAsyncLifetime , IDisposable
23
23
{
24
24
private const string TestOutputFileName = "__dapTestOutputFile.txt" ;
25
25
private static readonly bool s_isWindows = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ;
@@ -104,7 +104,13 @@ await PsesDebugAdapterClient.RequestDisconnect(new DisconnectArguments
104
104
TerminateDebuggee = true
105
105
} ) . ConfigureAwait ( true ) ;
106
106
await _psesProcess . Stop ( ) . ConfigureAwait ( true ) ;
107
+ }
108
+
109
+ public void Dispose ( )
110
+ {
111
+ GC . SuppressFinalize ( this ) ;
107
112
PsesDebugAdapterClient ? . Dispose ( ) ;
113
+ _psesProcess ? . Dispose ( ) ;
108
114
}
109
115
110
116
private static string NewTestFile ( string script , bool isPester = false )
You can’t perform that action at this time.
0 commit comments