Skip to content

Commit 61e5d9e

Browse files
authored
Use CoreCLR guard for cancellation test
1 parent e3fc9df commit 61e5d9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/PowerShellEditorServices.Test/Language/CompletionHandlerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public async Task CompletesFilePath()
130130
public async Task CompletionResolveHandlesTaskCanceledException()
131131
{
132132
using CancellationTokenSource cancellationTokenSource = new();
133-
#if NET5_0_OR_GREATER
133+
#if CoreCLR
134134
await cancellationTokenSource.CancelAsync();
135135
#else
136136
cancellationTokenSource.Cancel();

0 commit comments

Comments
 (0)