Skip to content

Commit 4208e92

Browse files
committed
Fix symbol test regression oopsie
1 parent 312caaa commit 4208e92

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/PowerShellEditorServices.Test.Shared/SymbolDetails/SymbolDetails.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Write-Host -ForegroundColor Black 'Test'
2+
# References Test uses this one
3+
Get-Process -Name 'powershell*'
24

35
<#
46
.Synopsis

test/PowerShellEditorServices.Test/Language/SymbolsServiceTests.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Collections.Generic;
55
using System.Linq;
66
using System.Management.Automation;
7+
using System.Runtime.InteropServices;
78
using System.Threading;
89
using System.Threading.Tasks;
910
using Microsoft.Extensions.Logging.Abstractions;
@@ -32,6 +33,7 @@ public class SymbolsServiceTests : IAsyncLifetime
3233
private PsesInternalHost psesHost;
3334
private WorkspaceService workspace;
3435
private SymbolsService symbolsService;
36+
private static readonly bool isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
3537

3638
public async Task InitializeAsync()
3739
{
@@ -907,7 +909,7 @@ public void FindsSymbolsWithNewLineInFile()
907909
[SkippableFact()]
908910
public void FindsSymbolsInDSCFile()
909911
{
910-
// Skip.If(!s_isWindows, "DSC only works properly on Windows.");
912+
Skip.If(!isWindows, "DSC only works properly on Windows.");
911913

912914
IEnumerable<SymbolReference> symbols = FindSymbolsInFile(FindSymbolsInDSCFile.SourceDetails);
913915
SymbolReference symbol = Assert.Single(symbols, i => i.Type == SymbolType.Configuration);

0 commit comments

Comments
 (0)