Skip to content

Commit 4e8441f

Browse files
committed
Fix FindsFunctionDefinitionInWorkspace test
This was broken because in an ancient rewrite, it wasn't caught that this test expected the workspace path to be set to the "References" folder. Inspect the test's source at commit 449cc21 to confirm.
1 parent 5c5974d commit 4e8441f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/PowerShellEditorServices.Test/Language/SymbolsServiceTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,10 @@ public async Task FindsDotSourcedFile()
149149
Assert.Equal("./ReferenceFileE.ps1", definitionResult.SymbolName);
150150
}
151151

152-
[Fact(Skip = "TODO Fix this test. A possible bug in PSES product code.")]
152+
[Fact]
153153
public async Task FindsFunctionDefinitionInWorkspace()
154154
{
155+
workspace.WorkspacePath = TestUtilities.GetSharedPath("References");
155156
SymbolReference definitionResult = await GetDefinition(FindsFunctionDefinitionInWorkspaceData.SourceDetails).ConfigureAwait(true);
156157
Assert.EndsWith("ReferenceFileE.ps1", definitionResult.FilePath);
157158
Assert.Equal("My-FunctionInFileE", definitionResult.SymbolName);

0 commit comments

Comments
 (0)