File tree 1 file changed +3
-1
lines changed
test/PowerShellEditorServices.Test.E2E
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1153,6 +1153,8 @@ await PsesLanguageClient
1153
1153
[ Fact ]
1154
1154
public async Task CanSendEvaluateRequestAsync ( )
1155
1155
{
1156
+ using var cancellationSource = new CancellationTokenSource ( millisecondsDelay : 5000 ) ;
1157
+
1156
1158
EvaluateResponseBody evaluateResponseBody =
1157
1159
await PsesLanguageClient
1158
1160
. SendRequest < EvaluateRequestArguments > (
@@ -1161,7 +1163,7 @@ await PsesLanguageClient
1161
1163
{
1162
1164
Expression = "Get-ChildItem"
1163
1165
} )
1164
- . Returning < EvaluateResponseBody > ( CancellationToken . None ) . ConfigureAwait ( false ) ;
1166
+ . Returning < EvaluateResponseBody > ( cancellationSource . Token ) . ConfigureAwait ( false ) ;
1165
1167
1166
1168
// These always gets returned so this test really just makes sure we get _any_ response.
1167
1169
Assert . Equal ( "" , evaluateResponseBody . Result ) ;
You can’t perform that action at this time.
0 commit comments