File tree 1 file changed +8
-4
lines changed
test/PowerShellEditorServices.Test.Host
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,10 @@ await this.SendRequest(
76
76
77
77
// Abort script execution
78
78
Task terminatedEvent = this . WaitForEvent ( TerminatedEvent . Type ) ;
79
- await this . SendRequest ( DisconnectRequest . Type , new object ( ) ) ;
80
- await terminatedEvent ;
79
+ await
80
+ Task . WhenAll (
81
+ this . SendRequest ( DisconnectRequest . Type , new object ( ) ) ,
82
+ terminatedEvent ) ;
81
83
}
82
84
83
85
[ Fact ]
@@ -93,8 +95,10 @@ public async Task DebugAdapterReceivesOutputEvents()
93
95
94
96
// Abort script execution
95
97
Task terminatedEvent = this . WaitForEvent ( TerminatedEvent . Type ) ;
96
- await this . SendRequest ( DisconnectRequest . Type , new object ( ) ) ;
97
- await terminatedEvent ;
98
+ await
99
+ Task . WhenAll (
100
+ this . SendRequest ( DisconnectRequest . Type , new object ( ) ) ,
101
+ terminatedEvent ) ;
98
102
}
99
103
100
104
private Task LaunchScript ( string scriptPath )
You can’t perform that action at this time.
0 commit comments